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

Function makeImpl

repos/effect/packages/effect/src/internal/hashSet.ts:53–58  ·  view source on GitHub ↗
(keyMap: HashMap.HashMap<V, boolean>)

Source from the content-addressed store, hash-verified

51}
52
53const makeImpl = <V>(keyMap: HashMap.HashMap<V, boolean>): HashSet<V> => {
54 const set = Object.create(HashSetProto)
55 set[HashSetTypeId] = HashSetTypeId
56 set.keyMap = keyMap
57 return set
58}
59
60/** @internal */
61export const isHashSet = (u: unknown): u is HashSet<unknown> => hasProperty(u, HashSetTypeId)

Callers 8

emptyFunction · 0.70
fromIterableFunction · 0.70
addFunction · 0.70
removeFunction · 0.70
fromPredicateFunction · 0.70
unionFunction · 0.70
intersectionFunction · 0.70
mapFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…