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

Function add

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

Source from the content-addressed store, hash-verified

85
86/** @internal */
87export const add = <V>(self: HashSet<V>, value: V): HashSet<V> => {
88 const map = keyMap(self)
89 return HashMap.has(map, value) ? self : makeImpl(HashMap.set(map, value, true))
90}
91
92/** @internal */
93export const remove = <V>(self: HashSet<V>, value: V): HashSet<V> => {

Callers 1

dateTime.tsFile · 0.70

Calls 4

keyMapFunction · 0.85
makeImplFunction · 0.70
setMethod · 0.65
hasMethod · 0.45

Tested by

no test coverage detected