Class Take<A>
java.lang.Object
com.jnape.palatable.lambda.functions.builtin.fn2.Take<A>
- Type Parameters:
A- The Iterable element type
- All Implemented Interfaces:
Fn1<Integer,,Fn1<Iterable<A>, Iterable<A>>> Fn2<Integer,,Iterable<A>, Iterable<A>> Applicative<Fn1<Iterable<A>,,Iterable<A>>, Fn1<Integer, ?>> Cartesian<Integer,,Fn1<Iterable<A>, Iterable<A>>, Fn1<?, ?>> Cocartesian<Integer,,Fn1<Iterable<A>, Iterable<A>>, Fn1<?, ?>> Contravariant<Integer,,Profunctor<?, Fn1<Iterable<A>, Iterable<A>>, Fn1<?, ?>>> Functor<Fn1<Iterable<A>,,Iterable<A>>, Fn1<Integer, ?>> Profunctor<Integer,,Fn1<Iterable<A>, Iterable<A>>, Fn1<?, ?>> Monad<Fn1<Iterable<A>,,Iterable<A>>, Fn1<Integer, ?>> MonadReader<Integer,,Fn1<Iterable<A>, Iterable<A>>, Fn1<Integer, ?>> MonadRec<Fn1<Iterable<A>,,Iterable<A>>, Fn1<Integer, ?>> MonadWriter<Integer,Fn1<Iterable<A>, Iterable<A>>, Fn1<Integer, ?>>
Lazily limit the
Iterable to n elements by returning an Iterable that stops
iteration after the nth element, or the last element of the Iterable, whichever comes
first.- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
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