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

Method remove

repos/effect/packages/effect/src/internal/hashMap.ts:259–271  ·  view source on GitHub ↗
(
    _edit: number,
    _shift: number,
    hash: number,
    key: K,
    removed: { value: boolean }
  )

Source from the content-addressed store, hash-verified

257 }
258
259 remove(
260 _edit: number,
261 _shift: number,
262 hash: number,
263 key: K,
264 removed: { value: boolean }
265 ): Node<K, V> | undefined {
266 if (this.hash === hash && Equal_.equals(this.key, key)) {
267 removed.value = true
268 return undefined
269 }
270 return this
271 }
272
273 iterator(): Iterator<[K, V]> {
274 return [[this.key, this.value] as [K, V]][Symbol.iterator]()

Callers 15

makeFunction · 0.45
commander.tsFile · 0.45
suiteFunction · 0.45
Record.test.tsFile · 0.45
Chunk.test.tsFile · 0.45
HashMap.test.tsFile · 0.45
TxHashSet.test.tsFile · 0.45
TxHashMap.test.tsFile · 0.45

Calls

no outgoing calls

Tested by 2

suiteFunction · 0.36
testLayerFunction · 0.36