Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
pipe
Function · 0.90
filter_
Function · 0.85
eq
Function · 0.85
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…