public abstract static class Iteratee.IterV<E,A>
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
<B> Iteratee.IterV<E,B> |
bind(F<A,Iteratee.IterV<E,B>> f)
TODO more documentation
|
static <E,A> Iteratee.IterV<E,A> |
cont(F<Iteratee.Input<E>,Iteratee.IterV<E,A>> f)
A computation that takes an element from an input to yield a new computation
|
static <E,A> Iteratee.IterV<E,A> |
done(A a,
Iteratee.Input<E> i)
A computation that has finished
|
static <E> Iteratee.IterV<E,Unit> |
drop(int n)
An iteratee that skips the first n elements of the input
|
abstract <Z> Z |
fold(F<P2<A,Iteratee.Input<E>>,Z> done,
F<F<Iteratee.Input<E>,Iteratee.IterV<E,A>>,Z> cont) |
static <E> Iteratee.IterV<E,Option<E>> |
head()
An iteratee that consumes the head of the input
|
static <E> Iteratee.IterV<E,java.lang.Integer> |
length()
An iteratee that counts and consumes the elements of the input
|
static <E> Iteratee.IterV<E,List<E>> |
list()
An iteratee that consumes the input elements and returns them as a list in reverse order,
so that the last line is the first element.
|
static <E> Iteratee.IterV<E,Option<E>> |
peek()
An iteratee that returns the first element of the input
|
A |
run() |
public static <E,A> Iteratee.IterV<E,A> cont(F<Iteratee.Input<E>,Iteratee.IterV<E,A>> f)
public abstract <Z> Z fold(F<P2<A,Iteratee.Input<E>>,Z> done, F<F<Iteratee.Input<E>,Iteratee.IterV<E,A>>,Z> cont)
public static <E,A> Iteratee.IterV<E,A> done(A a, Iteratee.Input<E> i)
public final A run()
public final <B> Iteratee.IterV<E,B> bind(F<A,Iteratee.IterV<E,B>> f)
public static final <E> Iteratee.IterV<E,java.lang.Integer> length()
public static final <E> Iteratee.IterV<E,Unit> drop(int n)
public static final <E> Iteratee.IterV<E,Option<E>> head()
public static final <E> Iteratee.IterV<E,Option<E>> peek()
public static final <E> Iteratee.IterV<E,List<E>> list()