A
- A type contravariant to the input Iterable element typepublic final class Filter<A> extends Object implements Fn2<Fn1<? super A,? extends Boolean>,Iterable<A>,Iterable<A>>
Iterable
, returning an Iterable
of just the
elements for which the predicate evaluated to true
.Modifier and Type | Method and Description |
---|---|
Iterable<A> |
checkedApply(Fn1<? super A,? extends Boolean> predicate,
Iterable<A> as) |
static <A> Filter<A> |
filter() |
static <A> Fn1<Iterable<A>,Iterable<A>> |
filter(Fn1<? super A,? extends Boolean> predicate) |
static <A> Iterable<A> |
filter(Fn1<? super A,? extends Boolean> predicate,
Iterable<A> as) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply, apply, checkedApply, compose, contraMap, curried, curry, diMapL, discardR, flip, fn2, fromBiFunction, toBiFunction, uncurry, widen