MCPcopy Create free account
hub / github.com/Effect-TS/effect / [Hash.symbol]

Method [Hash.symbol]

packages/effect/test/MutableHashMap.test.ts:8–10  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6 constructor(readonly a: number, readonly b: number) {}
7
8 [Hash.symbol]() {
9 return Hash.hash(`${this.a}-${this.b}`)
10 }
11
12 [Equal.symbol](that: unknown): boolean {
13 return that instanceof Key && this.a === that.a && this.b === that.b

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected