MCPcopy Create free account
hub / github.com/effect-app/libs / difference

Function difference

repos/effect/packages/effect/src/internal/hashSet.ts:137–138  ·  view source on GitHub ↗
(self: HashSet<V0>, that: HashSet<V1>)

Source from the content-addressed store, hash-verified

135
136/** @internal */
137export const difference = <V0, V1>(self: HashSet<V0>, that: HashSet<V1>): HashSet<V0> =>
138 fromPredicate(self, (value) => !has(that, value as any))
139
140/** @internal */
141export const isSubset = <V0, V1>(self: HashSet<V0>, that: HashSet<V1>): boolean => {

Callers

nothing calls this directly

Calls 2

fromPredicateFunction · 0.70
hasFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…