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

Function remove_

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

Source from the content-addressed store, hash-verified

480 * Delete a value from a set
481 */
482export function remove_<A>(E: Equivalence.Equivalence<A>): (set: Set<A>, a: A) => Set<A> {
483 return (set, a) => filter((ax: A) => !E(a, ax))(set)
484}
485
486/**
487 * If element is present remove it, if not add it

Callers 3

make_Function · 0.90
removeFunction · 0.85
make_Function · 0.85

Calls 2

filterFunction · 0.70
EClass · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…