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

Function isSubset_

packages/effect-app/src/Set.ts:233–236  ·  view source on GitHub ↗
(E: Equivalence.Equivalence<A>)

Source from the content-addressed store, hash-verified

231 * `true` if and only if every element in the first set is an element of the second set
232 */
233export function isSubset_<A>(E: Equivalence.Equivalence<A>): (x: Set<A>, y: Set<A>) => boolean {
234 const elemE = elem_(E)
235 return (x, y) => every((a: A) => elemE(y, a))(x)
236}
237
238/**
239 * Filter set values using predicate

Callers 1

isSubsetFunction · 0.85

Calls 2

elem_Function · 0.85
everyFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…