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

Function intersection

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

Source from the content-addressed store, hash-verified

61 * The set of elements which are in both the first and second set
62 */
63export function intersection<A>(E: Equivalence.Equivalence<A>): (r: Set<A>) => (l: Set<A>) => Set<A> {
64 const i = intersection_(E)
65 return (x) => (y) => i(x, y)
66}
67
68/**
69 * Convert a mutable set to a readonly one

Callers

nothing calls this directly

Calls 1

intersection_Function · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…