Class TakeWhile<A>
java.lang.Object
com.jnape.palatable.lambda.functions.builtin.fn2.TakeWhile<A>
- Type Parameters:
A- The Iterable element type
- All Implemented Interfaces:
Fn1<Fn1<? super A,,? extends Boolean>, Fn1<Iterable<A>, Iterable<A>>> Fn2<Fn1<? super A,,? extends Boolean>, Iterable<A>, Iterable<A>> Applicative<Fn1<Iterable<A>,,Iterable<A>>, Fn1<Fn1<? super A, ? extends Boolean>, ?>> Cartesian<Fn1<? super A,,? extends Boolean>, Fn1<Iterable<A>, Iterable<A>>, Fn1<?, ?>> Cocartesian<Fn1<? super A,,? extends Boolean>, Fn1<Iterable<A>, Iterable<A>>, Fn1<?, ?>> Contravariant<Fn1<? super A,,? extends Boolean>, Profunctor<?, Fn1<Iterable<A>, Iterable<A>>, Fn1<?, ?>>> Functor<Fn1<Iterable<A>,,Iterable<A>>, Fn1<Fn1<? super A, ? extends Boolean>, ?>> Profunctor<Fn1<? super A,,? extends Boolean>, Fn1<Iterable<A>, Iterable<A>>, Fn1<?, ?>> Monad<Fn1<Iterable<A>,,Iterable<A>>, Fn1<Fn1<? super A, ? extends Boolean>, ?>> MonadReader<Fn1<? super A,,? extends Boolean>, Fn1<Iterable<A>, Iterable<A>>, Fn1<Fn1<? super A, ? extends Boolean>, ?>> MonadRec<Fn1<Iterable<A>,,Iterable<A>>, Fn1<Fn1<? super A, ? extends Boolean>, ?>> MonadWriter<Fn1<? super A,? extends Boolean>, Fn1<Iterable<A>, Iterable<A>>, Fn1<Fn1<? super A, ? extends Boolean>, ?>>
public final class TakeWhile<A>
extends Object
implements Fn2<Fn1<? super A,? extends Boolean>,Iterable<A>,Iterable<A>>
Lazily limit the
Iterable to the first group of contiguous elements that satisfy the predicate by
iterating up to, but not including, the first element for which the predicate evaluates to false.- See Also:
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.jnape.palatable.lambda.functions.Fn1
andThen, carry, cartesian, censor, choose, cocartesian, diMap, diMapR, discardL, flatMap, fmap, lazyZip, listens, local, pure, self, thunk, toFunction, trampolineM, zip, zip