DistributiveProdLaws

zio.prelude.experimental.laws.DistributiveProdLaws

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Inherited methods

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

Attributes

Inherited from:
ZLawful

Concrete fields

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

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

Attributes

The left distributivity law states that for operators + and *, for all values a1, a2, and a3, the following must hold:

The left distributivity law states that for operators + and *, for all values a1, a2, and a3, the following must hold:

a1 * (a2 + a3) === (a1 * a2) + (a1 * a3)

Attributes

The right distributivity law states that for operators + and *, for all values a1, a2, and a3, the following must hold:

The right distributivity law states that for operators + and *, for all values a1, a2, and a3, the following must hold:

(a1 + a2) * a3 === (a1 * a3) + (a2 * a3)

Attributes