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

Method get

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

Source from the content-addressed store, hash-verified

201 }
202
203 get(_shift: number, hash: number, key: K): Option.Option<V> {
204 if (this.hash === hash && Equal_.equals(this.key, key)) {
205 return Option.some(this.value)
206 }
207 return Option.none()
208 }
209
210 has(_shift: number, hash: number, key: K): boolean {
211 return this.hash === hash && Equal_.equals(this.key, key)

Callers

nothing calls this directly

Calls 2

equalsMethod · 0.80
someMethod · 0.80

Tested by

no test coverage detected