Modifier and Type | Interface and Description |
---|---|
interface |
Monoid<A>
A Monoid is a Semigroup (types with an associative binary operation) that has an
identity element
zero . |
Modifier and Type | Method and Description |
---|---|
static <A> Monoid<A> |
Monoid.of(A zero,
Semigroup<A> semigroup)
Factory method for monoids, taking a zero and a Semigroup.
|
Copyright © 2017. All Rights Reserved.