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

Function replace_

packages/effect-app/src/NonEmptySet.ts:26–28  ·  view source on GitHub ↗
(set: NonEmptySet<A>, a: A)

Source from the content-addressed store, hash-verified

24 const insert_: (set: NonEmptySet<A>, a: A) => NonEmptySet<A> = insert_Original as any
25
26 function replace_(set: NonEmptySet<A>, a: A) {
27 return (pipe(filter_(set, (x) => !eq(x, a)), insert__(a)) as NonEmptySet<A>)
28 }
29
30 const toArray__ = toArrayOriginal(ord)
31

Callers 1

make_Function · 0.70

Calls 3

pipeFunction · 0.90
filter_Function · 0.90
eqFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…