A SemiRing instance for T must satisfy these laws:
SemiRing
T
additive
zero
multiplication
one
x
multiplication.combine(zero, x)
multiplication.combine(x, zero)
Generated using TypeDoc
A
SemiRing
instance forT
must satisfy these laws:additive
is calledzero
.multiplication
is calledone
.x
is left and right annihilated byzero
:multiplication.combine(zero, x)
=zero
,multiplication.combine(x, zero)
=zero
.