Constructs a Hash[A] with Ord[A]
that uses the default notion of hashing embodied in
the implementation of hashCode
for values of type A
and ordering from scala.math.Ordering.
Constructs an instance from a hash function, equal function and ord function.
Constructs an instance from a hash function, equal function and ord function.
Checking equality is delegated to ord
, so short-circuiting the equality check (failing fast) is not possible.
Constructs an instance from a hash0
function, an ord
function and a
equal0 function.
Since this takes a separate
equal0, short-circuiting the equality check (failing fast) is possible.