615 B
615 B
Monoid
A Semigroup with an identity value.
In Haskell, the function representing the identity value for a given Monoid is
mempty
.
Examples
List
Combined with append
, identity value is the empty list ([]
)
Number Addition
Combined with +
, identity value is 0
Number Multiplication
Combined with *
, identity value is 1