collections HashEq64 - tadashi9e/gmp4pony GitHub Wiki
HashEq64[A: (Hashable64 #read & Equatable[A] #read)]
primitive val HashEq64[A: (Hashable64 #read & Equatable[A] #read)] is
HashFunction64[A] val- HashFunction64[A] val
new val create()
: HashEq64[A] val^- HashEq64[A] val^
Use the hash function from the type parameter.
fun box hash64(
x: box->A)
: U64 val- x: box->A
- U64 val
Use the structural equality function from the type parameter.
fun box eq(
x: box->A,
y: box->A)
: Bool val- x: box->A
- y: box->A
- Bool val
fun box ne(
that: HashEq64[A] val)
: Bool val- that: HashEq64[A] val
- Bool val