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

Function hashMapEntry

packages/effect/src/Hash.ts:530–530  ·  view source on GitHub ↗
([k, v]: [unknown, unknown])

Source from the content-addressed store, hash-verified

528const mapSeed = string("Map")
529const setSeed = string("Set")
530const hashMapEntry = ([k, v]: [unknown, unknown]) => combineDataFirst(hash(k), hash(v))
531const hashSetElement = (element: unknown) => combineDataFirst(setSeed, hash(element))
532
533const randomHashCache = new WeakMap<any, number>()

Callers

nothing calls this directly

Calls 1

hashFunction · 0.70

Tested by

no test coverage detected