| Constructor and Description |
|---|
Fold() |
| Modifier and Type | Method and Description |
|---|---|
Function<S,Boolean> |
all(Predicate<A> p)
check if all targets satisfy the predicate
|
static <A> Fold<Either<A,A>,A> |
codiagonal() |
<B> Fold<S,B> |
composeFold(Fold<A,B> other)
|
<C> Fold<S,C> |
composeGetter(Getter<A,C> other)
|
<B,C,D> Fold<S,C> |
composeIso(PIso<A,B,C,D> other)
|
<B,C,D> Fold<S,C> |
composeLens(PLens<A,B,C,D> other)
|
<B,C,D> Fold<S,C> |
composeOptional(POptional<A,B,C,D> other)
|
<B,C,D> Fold<S,C> |
composePrism(PPrism<A,B,C,D> other)
|
Predicate<S> |
exist(Predicate<A> p)
check if at least one target satisfies the predicate
|
Function<S,Option<A>> |
find(Predicate<A> p)
find the first target of a
Fold matching the predicate |
Function<S,A> |
fold(Monoid<A> monoid)
combine all targets using a target's
Monoid |
abstract <M> Function<S,M> |
foldMap(Monoid<M> monoid,
Function<A,M> f)
|
Iterable<A> |
getAll(S s)
get all the targets of a
Fold |
Option<A> |
headOption(S s)
get the first target of a
Fold |
static <A> Fold<A,A> |
id() |
<S1> Fold<Either<S,S1>,A> |
sum(Fold<S1,A> other)
join two
Fold with the same target |
Copyright © 2018 Atlassian. All rights reserved.