CRE - The core type of the foldable (e.g. the HKT witness type, not the generic type : ListType.ยต)public interface Foldable<CRE>
| Modifier and Type | Method and Description |
|---|---|
default <T> boolean |
allMatch(java.util.function.Predicate<? super T> pred,
Higher<CRE,T> ds) |
default <T> boolean |
anyMatch(java.util.function.Predicate<? super T> pred,
Higher<CRE,T> ds) |
default <C2,T,R> Higher<C2,T> |
foldK(MonoidK<C2,T> monoid,
Higher<CRE,Higher<C2,T>> ds) |
<T> T |
foldLeft(Monoid<T> monoid,
Higher<CRE,T> ds)
Starting from the left combine each value in turn with an accumulator
|
default <T> T |
foldLeft(T identity,
java.util.function.BinaryOperator<T> semigroup,
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) |
default <T,R> R |
foldr(java.util.function.Function<T,java.util.function.Function<R,R>> fn,
R b,
Higher<CRE,T> ds) |
<T> T |
foldRight(Monoid<T> monoid,
Higher<CRE,T> ds)
Starting from the right combine each value in turn with an accumulator
|
default <T> T |
foldRight(T identity,
java.util.function.BinaryOperator<T> semigroup,
Higher<CRE,T> ds)
Starting from the right combine each value in turn with an accumulator
|
default <T> T |
getAt(Higher<CRE,T> ds,
int index) |
default <T> T |
intercalate(Monoid<T> monoid,
T value,
Higher<CRE,T> ds) |
default <T> ListX<T> |
listX(Higher<CRE,T> ds) |
default <T> long |
size(Higher<CRE,T> ds) |
default <T> ReactiveSeq<T> |
stream(Higher<CRE,T> ds) |
<T> T foldRight(Monoid<T> monoid, Higher<CRE,T> ds)
monoid - Monoid to combine valuesds - DataStructure to foldRightdefault <T> T foldRight(T identity,
java.util.function.BinaryOperator<T> semigroup,
Higher<CRE,T> ds)
identity - Identity value & defaultsemigroup - Combining functionds - DataStructure to foldRight<T> T foldLeft(Monoid<T> monoid, Higher<CRE,T> ds)
monoid - Monoid to combine valuesds - DataStructure to foldLeftdefault <T> T foldLeft(T identity,
java.util.function.BinaryOperator<T> semigroup,
Higher<CRE,T> ds)
identity - Identity value & defaultsemigroup - Combining functionds - DataStructure to foldLeft<T,R> R foldMap(Monoid<R> mb, java.util.function.Function<? super T,? extends R> fn, Higher<CRE,T> nestedA)
default <T,R> R foldr(java.util.function.Function<T,java.util.function.Function<R,R>> fn,
R b,
Higher<CRE,T> ds)
default <T> ReactiveSeq<T> stream(Higher<CRE,T> ds)
default <T> boolean anyMatch(java.util.function.Predicate<? super T> pred,
Higher<CRE,T> ds)