A Monoid is a SemiGroup with an identity
S | Type of a set |
Op | Type of an operation |
{S,Op} | Model of Monoid |
a | Object of type S |
op | Object of type Op |
Name | Expression | Return type |
---|---|---|
Identity | identity<S,Op>()() | S |
Identity | op(a,identity<S,Op>()()) == a |