collections HashIs - tadashi9e/gmp4pony GitHub Wiki
primitive val HashIs[A: A] is
HashFunction[A] val,
HashFunction64[A] val- HashFunction[A] val
- HashFunction64[A] val
new val create()
: HashIs[A] val^- HashIs[A] val^
Hash the identity rather than the contents.
fun box hash(
x: box->A!)
: USize val- x: box->A!
- USize val
Hash the identity rather than the contents.
fun box hash64(
x: box->A!)
: U64 val- x: box->A!
- U64 val
Determine equality by identity rather than structurally.
fun box eq(
x: box->A!,
y: box->A!)
: Bool val- x: box->A!
- y: box->A!
- Bool val
fun box ne(
that: HashIs[A] val)
: Bool val- that: HashIs[A] val
- Bool val