primitive val HashEq[A: (Hashable #read & Equatable[A] #read)] is HashFunction[A] val
new val create() : HashEq[A] val^
Use the hash function from the type parameter.
fun box hash( x: box->A) : USize val
Use the structural equality function from the type parameter.
fun box eq( x: box->A, y: box->A) : Bool val
fun box ne( that: HashEq[A] val) : Bool val
© 2016-2018, The Pony Developers
© 2014-2015, Causality Ltd.
Licensed under the BSD 2-Clause License.
https://stdlib.ponylang.io/collections-HashEq