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

Method get

packages/effect/src/internal/hashMap.ts:305–316  ·  view source on GitHub ↗
(_shift: number, hash: number, key: K)

Source from the content-addressed store, hash-verified

303 }
304
305 get(_shift: number, hash: number, key: K): Option.Option<V> {
306 if (this.hash !== hash) {
307 return Option.none()
308 }
309
310 for (const [k, v] of this.entries) {
311 if (Equal_.equals(k, key)) {
312 return Option.some(v)
313 }
314 }
315 return Option.none()
316 }
317
318 has(_shift: number, hash: number, key: K): boolean {
319 if (this.hash !== hash) {

Callers

nothing calls this directly

Calls 2

equalsMethod · 0.80
someMethod · 0.80

Tested by

no test coverage detected