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

Function toggle

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

Source from the content-addressed store, hash-verified

487 * If element is present remove it, if not add it
488 */
489export function toggle<A>(E: Equivalence.Equivalence<A>): (a: A) => (set: Set<A>) => Set<A> {
490 const t = toggle_(E)
491 return (a) => (set) => t(set, a)
492}
493
494/**
495 * If element is present remove it, if not add it

Callers

nothing calls this directly

Calls 1

toggle_Function · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…