Contents
where
A : Monoid<A>
Monoid trait
A monoid is a type with an identity and an associative binary operation.
Parameters
| type | A | The type being described as a monoid |
record MonoidInstance <A> (A Empty, Func<A, A, A> Combine) Source #
Contains the trait in record form. This allows the trait to be passed around as a value rather than resolved as a type. It helps us get around limitations in the C# constraint system.
Parameters
| type | A | Trait type |
| param | Empty | Identity |
| param | Combine | An associative binary operation. |