InvolutionEqual

zio.prelude.experimental.coherent.InvolutionEqual
See theInvolutionEqual companion object

Attributes

Companion
object
Graph
Supertypes
trait Involution[A]
trait Noncontradiction[A]
trait ExcludedMiddle[A]
trait Complement[A]
trait AbsorptionEqual[A]
trait Equal[A]
trait Absorption[A]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def And: Identity[subtypeF.Type[A]]

Attributes

Inherited from:
ExcludedMiddle
def Or: Identity[subtypeF.Type[A]]

Attributes

Inherited from:
Noncontradiction
def and(l: => A, r: => A): A

Attributes

Inherited from:
Absorption
final def both[B](that: => Equal[B]): Equal[(A, B)]

Constructs an Equal[(A, B)] given an Equal[A] and Equal[B] by first comparing the A values for equality and then comparing the B values for equality, if necessary.

Constructs an Equal[(A, B)] given an Equal[A] and Equal[B] by first comparing the A values for equality and then comparing the B values for equality, if necessary.

Attributes

Inherited from:
Equal
final def bothWith[B, C](that: => Equal[B])(f: C => (A, B)): Equal[C]

Constructs an Equal[C] given an Equal[A], an Equal[B] and a function f to transform a C value into an (A, B). The instance will convert each C value into an (A, B), compare the A values for equality, and then compare the B values for equality if necessary.

Constructs an Equal[C] given an Equal[A], an Equal[B] and a function f to transform a C value into an (A, B). The instance will convert each C value into an (A, B), compare the A values for equality, and then compare the B values for equality if necessary.

Attributes

Inherited from:
Equal
def bottom: A

Attributes

Inherited from:
Noncontradiction
def complement(a: => A): A

Attributes

Inherited from:
Complement
def contramap[B](f: B => A): Equal[B]

Constructs an Equal[B] given an Equal[A] and a function f to transform a B value into an A value. The instance will convert each B value into an A and the compare the A values for equality.

Constructs an Equal[B] given an Equal[A] and a function f to transform a B value into an A value. The instance will convert each B value into an A and the compare the A values for equality.

Attributes

Inherited from:
Equal
final def either[B](that: => Equal[B]): Equal[Either[A, B]]

Constructs an Equal[Either[A, B]] given an Equal[A] and an Equal[B]. The instance will compare the Either[A, B] values and if both are Right or Left compare them for equality.

Constructs an Equal[Either[A, B]] given an Equal[A] and an Equal[B]. The instance will compare the Either[A, B] values and if both are Right or Left compare them for equality.

Attributes

Inherited from:
Equal
final def eitherWith[B, C](that: => Equal[B])(f: C => Either[A, B]): Equal[C]

Constructs an Equal[C] given an Equal[A], an Equal[B], and a function f to transform a C value into an Either[A, B]. The instance will convert each C value into an Either[A, B] and then if both are Right or Left compare them for equality.

Constructs an Equal[C] given an Equal[A], an Equal[B], and a function f to transform a C value into an Either[A, B]. The instance will convert each C value into an Either[A, B] and then if both are Right or Left compare them for equality.

Attributes

Inherited from:
Equal
final def equal(l: A, r: A): Boolean

Returns whether two values of type A are equal.

Returns whether two values of type A are equal.

Attributes

Inherited from:
Equal
final def notEqual(l: A, r: A): Boolean

Returns whether two values of type A are not equal.

Returns whether two values of type A are not equal.

Attributes

Inherited from:
Equal
def or(l: => A, r: => A): A

Attributes

Inherited from:
Absorption
def toScala[A1 <: A]: Equiv[A1]

Attributes

Inherited from:
Equal
def top: A

Attributes

Inherited from:
ExcludedMiddle