MCPcopy Index your code
hub / github.com/Effect-TS/effect / [Hash.symbol]

Function [Hash.symbol]

packages/effect/src/internal/hashMap.ts:50–56  ·  view source on GitHub ↗
(this: HM.HashMap<unknown, unknown>)

Source from the content-addressed store, hash-verified

48 return new HashMapIterator(this, (k, v) => [k, v])
49 },
50 [Hash.symbol](this: HM.HashMap<unknown, unknown>): number {
51 let hash = Hash.hash(HashMapSymbolKey)
52 for (const item of this) {
53 hash ^= pipe(Hash.hash(item[0]), Hash.combine(Hash.hash(item[1])))
54 }
55 return Hash.cached(this, hash)
56 },
57 [Equal.symbol]<K, V>(this: HashMapImpl<K, V>, that: unknown): boolean {
58 if (isHashMap(that)) {
59 if ((that as HashMapImpl<K, V>)._size !== this._size) {

Callers

nothing calls this directly

Calls 3

cachedMethod · 0.80
pipeFunction · 0.70
combineMethod · 0.65

Tested by

no test coverage detected