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

Method has

packages/effect/src/internal/hashMap.ts:458–465  ·  view source on GitHub ↗
(shift: number, hash: number, key: K)

Source from the content-addressed store, hash-verified

456 }
457
458 has(shift: number, hash: number, key: K): boolean {
459 const bit = bitpos(hash, shift)
460 if ((this.bitmap & bit) === 0) {
461 return false
462 }
463 const idx = index(this.bitmap, bit)
464 return this.children[idx].has(shift + SHIFT, hash, key)
465 }
466
467 set(
468 edit: number,

Callers

nothing calls this directly

Calls 3

bitposFunction · 0.85
indexFunction · 0.85
hasMethod · 0.45

Tested by

no test coverage detected