public interface MonoidK<W,T> extends SemigroupK<W,T>, Monoid<Higher<W,T>>
Fn2.FunctionalOperations<T1,T2,R>| Modifier and Type | Method and Description |
|---|---|
static <W,T> MonoidK<W,T> |
of(Higher<W,T> zero,
SemigroupK<W,T> sg) |
Higher<W,T> |
zero()
An element that when provided as a parameter to the combiner with another value, results
in the other value being returned
e.g.
|
applyfoldLeft, foldLeft, foldLeftI, foldLeftP, foldMap, foldMapI, foldMapP, foldRight, foldRight, foldRightI, foldRightP, fromBiFunction, of, of, reduce, reduceI, reduceP, toMonoidK, visittoSemigroupKHigher<W,T> zero()
Monoid0 + 1 = 1 0 is zero() 1 * 2 = 2 1 is zero() "" + "hello" = "hello" "" is zero()
static <W,T> MonoidK<W,T> of(Higher<W,T> zero, SemigroupK<W,T> sg)