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

Function fromHashMap

packages/effect/src/MutableHashSet.ts:114–118  ·  view source on GitHub ↗
(keyMap: MutableHashMap.MutableHashMap<V, boolean>)

Source from the content-addressed store, hash-verified

112}
113
114const fromHashMap = <V>(keyMap: MutableHashMap.MutableHashMap<V, boolean>): MutableHashSet<V> => {
115 const set = Object.create(MutableHashSetProto)
116 set.keyMap = keyMap
117 return set
118}
119
120/**
121 * Creates an empty MutableHashSet.

Callers 4

TxHashMap.tsFile · 0.85
compactFunction · 0.85
emptyFunction · 0.85
fromIterableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected