Contents
record SemigroupInstance <A> (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 | Combine | An associative binary operation. |
class SemigroupExtensions Source #
Methods
method A combine <A> (A x, A y) Source #
where
A : Semigroup<A>
An associative binary operation
Parameters
| param | x | The left hand side of the operation |
| param | y | The right hand side of the operation |
| returns | The result of the operation | |
method Either<L, R> combine <L, R> (Either<L, R> lhs, Either<L, R> rhs) Source #
where
R : Semigroup<R>
An associative binary operation
Parameters
| param | lhs | Left-hand side of the operation |
| param | rhs | Right-hand side of the operation |
| returns | lhs + rhs | |