Function
remove
(self: HashSet<V>, value: V)
Source from the content-addressed store, hash-verified
| 91 | |
| 92 | /** @internal */ |
| 93 | export 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 */ |
| 99 | export const size = <V>(self: HashSet<V>): number => HashMap.size(keyMap(self)) |
Tested by
no test coverage detected
Used in the wild real call sites across dependent graphs
searching dependent graphs…