IdentityLaws

zio.prelude.laws.IdentityLaws

Attributes

Graph
Supertypes
trait ZLawful[EqualIdentity, Any]
class Object
trait Matchable
class Any
Self type

Members list

Value members

Inherited methods

def +[Caps1 <: (EqualIdentity), R1](that: ZLawful[Caps1, R1]): ZLawful[Caps1, R1]

Attributes

Inherited from:
ZLawful

Concrete fields

lazy val laws: Laws[EqualIdentity]

The set of all laws that instances of Identity must satisfy.

The set of all laws that instances of Identity must satisfy.

Attributes

The left identity law states that for some binary operator *, for all values a, the following must hold:

The left identity law states that for some binary operator *, for all values a, the following must hold:

identity * a === a

Attributes

The left identity law states that for some binary operator *, for all values a, the following must hold:

The left identity law states that for some binary operator *, for all values a, the following must hold:

a * identity === a

Attributes