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

Function replace_

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

Source from the content-addressed store, hash-verified

623 const insert__ = insert(eq)
624
625 function replace_(set: Set<A>, a: A) {
626 return pipe(filter_(set, (x) => !eq(x, a)), insert__(a))
627 }
628
629 return {
630 insert: insert__,

Callers 1

make_Function · 0.70

Calls 3

pipeFunction · 0.90
filter_Function · 0.85
eqFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…