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

Function remove

repos/effect/packages/effect/src/internal/hashSet.ts:93–96  ·  view source on GitHub ↗
(self: HashSet<V>, value: V)

Source from the content-addressed store, hash-verified

91
92/** @internal */
93export const remove = <V>(self: HashSet<V>, value: V): HashSet<V> => {
94 const map = keyMap(self)
95 return HashMap.has(map, value) ? makeImpl(HashMap.remove(map, value)) : self
96}
97
98/** @internal */
99export const size = <V>(self: HashSet<V>): number => HashMap.size(keyMap(self))

Callers 4

hashMap.tsFile · 0.70
trie.tsFile · 0.70
cancelFunction · 0.50
subscribeMethod · 0.50

Calls 4

keyMapFunction · 0.85
makeImplFunction · 0.70
hasMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…