HashPartialOrd

zio.prelude.coherent.HashPartialOrd
See theHashPartialOrd companion trait

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def make[A](hash0: A => Int, ord: (A, A) => PartialOrdering, equal0: (A, A) => Boolean): Hash[A] & PartialOrd[A]

Constructs an instance from a hash0 function, an ord`` function and aequal0function. Since this takes a separateequal0`, short-circuiting the equality check (failing fast) is possible.

Constructs an instance from a hash0 function, an ord`` function and aequal0function. Since this takes a separateequal0`, short-circuiting the equality check (failing fast) is possible.

Attributes

def make[A](hash0: A => Int, ord: (A, A) => PartialOrdering): Hash[A] & PartialOrd[A]

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 hash function, equal function and ord function. Checking equality is delegated to ord, so short-circuiting the equality check (failing fast) is not possible.

Attributes

Implicits

Implicits

implicit def derive[A](implicit hash0: Hash[A], ord0: PartialOrd[A]): HashPartialOrd[A]