MCPcopy Create free account
hub / github.com/Effect-TS/effect / remove

Function remove

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

Source from the content-addressed store, hash-verified

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

Callers 4

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

Calls 4

keyMapFunction · 0.85
makeImplFunction · 0.70
hasMethod · 0.65
removeMethod · 0.65

Tested by

no test coverage detected