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

Function fromHashMap

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

Source from the content-addressed store, hash-verified

115}
116
117const fromHashMap = <V>(keyMap: MutableHashMap.MutableHashMap<V, boolean>): MutableHashSet<V> => {
118 const set = Object.create(MutableHashSetProto)
119 set.keyMap = keyMap
120 return set
121}
122
123/**
124 * 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