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

Method get

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

Source from the content-addressed store, hash-verified

447 }
448
449 get(shift: number, hash: number, key: K): Option.Option<V> {
450 const bit = bitpos(hash, shift)
451 if ((this.bitmap & bit) === 0) {
452 return Option.none()
453 }
454 const idx = index(this.bitmap, bit)
455 return this.children[idx].get(shift + SHIFT, hash, key)
456 }
457
458 has(shift: number, hash: number, key: K): boolean {
459 const bit = bitpos(hash, shift)

Callers

nothing calls this directly

Calls 3

bitposFunction · 0.85
indexFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected