| Constructor and Description |
|---|
GeneralFoldable() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
foldLeft(Monoid<T> monoid,
Higher<CRE,T> ds)
Starting from the left combine each value in turn with an accumulator
|
<T,R> R |
foldMap(Monoid<R> mb,
java.util.function.Function<? super T,? extends R> fn,
Higher<CRE,T> nestedA) |
<T> T |
foldRight(Monoid<T> monoid,
Higher<CRE,T> ds)
Starting from the right combine each value in turn with an accumulator
|
public <T> T foldRight(Monoid<T> monoid, Higher<CRE,T> ds)
Foldablepublic <T> T foldLeft(Monoid<T> monoid, Higher<CRE,T> ds)
Foldable