eval

object eval extends EvalModule
trait IterateeModule[[A] =>> Eval[A]]
trait EnumeratorModule[[A] =>> Eval[A]]
trait EnumerateeModule[[A] =>> Eval[A]]
trait Module[[A] =>> Eval[A]]
class Object
trait Matchable
class Any

Document{}

Lift an effectful value into an iteratee.

Lift an effectful value into an iteratee.

Inherited from
IterateeModule
final def cross[E1, E2](e2: Enumerator[[A] =>> Eval[A], E2]): Enumeratee[[A] =>> Eval[A], E1, (E1, E2)]

Transform a stream by taking the cross-product with the given Enumerator.

Transform a stream by taking the cross-product with the given Enumerator.

Inherited from
EnumerateeModule
final def remainderWithResult[O, R, I](iteratee: Iteratee[[A] =>> Eval[A], O, R])(f: (R, O) => I): Enumeratee[[A] =>> Eval[A], O, I]

Run an iteratee and then use the provided function to combine the result with the remaining elements.

Run an iteratee and then use the provided function to combine the result with the remaining elements.

Inherited from
EnumerateeModule
final def dropWhile[E](p: E => Boolean): Enumeratee[[A] =>> Eval[A], E, E]

An Enumeratee that drops values from a stream as long as they satisfy the given predicate.

An Enumeratee that drops values from a stream as long as they satisfy the given predicate.

Inherited from
EnumerateeModule
final def filterM[E](p: E => Eval[Boolean]): Enumeratee[[A] =>> Eval[A], E, E]

Drop values that do not satisfy the given monadic predicate.

Drop values that do not satisfy the given monadic predicate.

Inherited from
EnumerateeModule
final def cont[E, A](ifInput: NonEmptyList[E] => Iteratee[[A] =>> Eval[A], E, A], ifEnd: Eval[A]): Iteratee[[A] =>> Eval[A], E, A]

Create an incomplete Iteratee that will use the given function to process the next input.

Create an incomplete Iteratee that will use the given function to process the next input.

Inherited from
IterateeModule
final def foldMap[E, A](f: E => A)(A: Monoid[A]): Iteratee[[A] =>> Eval[A], E, A]

An Iteratee that combines values using a function to a type with a cats.Monoid instance.

An Iteratee that combines values using a function to a type with a cats.Monoid instance.

Inherited from
IterateeModule
final def zipWithIndex[E]: Enumeratee[[A] =>> Eval[A], E, (E, Long)]

Zip with the number of elements that have been encountered.

Zip with the number of elements that have been encountered.

Inherited from
EnumerateeModule
final def consume[E]: Iteratee[[A] =>> Eval[A], E, Vector[E]]

An Iteratee that collects all the elements in a stream in a vector.

An Iteratee that collects all the elements in a stream in a vector.

Inherited from
IterateeModule
sealed class PerformPartiallyApplied[E]
Inherited from
EnumeratorModule
final def map[O, I](f: O => I): Enumeratee[[A] =>> Eval[A], O, I]

Map a function over a stream.

Map a function over a stream.

Inherited from
EnumerateeModule
final def enumOne[E](e: E): Enumerator[[A] =>> Eval[A], E]

An enumerator that produces a single value.

An enumerator that produces a single value.

Inherited from
EnumeratorModule
final def grouped[E](n: Int): Enumeratee[[A] =>> Eval[A], E, Vector[E]]

Split the stream into groups of a given length.

Split the stream into groups of a given length.

Inherited from
EnumerateeModule
final def generateM[E](f: Eval[Option[E]]): Enumerator[[A] =>> Eval[A], E]

An enumerator that returns the result of an effectful operation until None is generated.

An enumerator that returns the result of an effectful operation until None is generated.

Inherited from
EnumeratorModule
final def iterateUntil[E](init: E)(f: E => Option[E]): Enumerator[[A] =>> Eval[A], E]

An enumerator that iteratively performs an operation until None is produced and returns the results.

An enumerator that iteratively performs an operation until None is produced and returns the results.

Inherited from
EnumeratorModule
final def enumStream[E](es: Stream[E], chunkSize: Int): Enumerator[[A] =>> Eval[A], E]

An enumerator that produces values from a stream.

An enumerator that produces values from a stream.

Inherited from
EnumeratorModule
final def remainderWithResultM[O, R, I](iteratee: Iteratee[[A] =>> Eval[A], O, R])(f: (R, O) => Eval[I]): Enumeratee[[A] =>> Eval[A], O, I]

Run an iteratee and then use the provided effectful function to combine the result with the remaining elements.

Run an iteratee and then use the provided effectful function to combine the result with the remaining elements.

Inherited from
EnumerateeModule
final def consumeIn[E, C[_]](C: Applicative[C], M: MonoidK[C]): Iteratee[[A] =>> Eval[A], E, C[E]]

An Iteratee that collects all the elements in a stream in a given collection type.

An Iteratee that collects all the elements in a stream in a given collection type.

Inherited from
IterateeModule
object syntax
Inherited from
Module
final def foreachM[A](f: A => Eval[Unit]): Iteratee[[A] =>> Eval[A], A, Unit]

An Iteratee that runs an effectful function for its side effects.

An Iteratee that runs an effectful function for its side effects.

Inherited from
IterateeModule
final def head[E]: Iteratee[[A] =>> Eval[A], E, Option[E]]

An Iteratee that returns the first value in a stream.

An Iteratee that returns the first value in a stream.

Inherited from
IterateeModule
final def takeWhile[E](p: E => Boolean): Enumeratee[[A] =>> Eval[A], E, E]

An Enumeratee that takes values from a stream as long as they satisfy the given predicate.

An Enumeratee that takes values from a stream as long as they satisfy the given predicate.

Inherited from
EnumerateeModule
final def flatMapM[O, I](f: O => Eval[I]): Enumeratee[[A] =>> Eval[A], O, I]

Map a function returning a value in a context over a stream.

Map a function returning a value in a context over a stream.

Inherited from
EnumerateeModule
final def sum[E](E: Monoid[E]): Iteratee[[A] =>> Eval[A], E, E]

An Iteratee that combines values using an cats.Monoid instance.

An Iteratee that combines values using an cats.Monoid instance.

Inherited from
IterateeModule
final def liftToEnumerator[E](fe: Eval[E]): Enumerator[[A] =>> Eval[A], E]

Lift an effectful value into an enumerator.

Lift an effectful value into an enumerator.

Inherited from
EnumeratorModule
final def dropWhileI[E](p: E => Boolean): Iteratee[[A] =>> Eval[A], E, Unit]

An Iteratee that drops values from a stream as long as they satisfy the given predicate.

An Iteratee that drops values from a stream as long as they satisfy the given predicate.

Inherited from
IterateeModule
final def enumIterable[E](es: Iterable[E], chunkSize: Int): Enumerator[[A] =>> Eval[A], E]

An enumerator that produces values from an iterable collection.

An enumerator that produces values from an iterable collection.

Inherited from
EnumeratorModule
final def splitOn[E](p: E => Boolean): Enumeratee[[A] =>> Eval[A], E, Vector[E]]

Split the stream using the given predicate to identify delimiters.

Split the stream using the given predicate to identify delimiters.

Inherited from
EnumerateeModule
final def takeI[E](n: Int): Iteratee[[A] =>> Eval[A], E, Vector[E]]

An Iteratee that returns a given number of the first values in a stream.

An Iteratee that returns a given number of the first values in a stream.

Inherited from
IterateeModule
final def fold[E, A](init: A)(f: (A, E) => A): Iteratee[[A] =>> Eval[A], E, A]

An Iteratee that folds a stream using an initial value and an accumulation function.

An Iteratee that folds a stream using an initial value and an accumulation function.

Inherited from
IterateeModule
final def done[E, A](value: A): Iteratee[[A] =>> Eval[A], E, A]

Create a new completed Iteratee with the given result.

Create a new completed Iteratee with the given result.

Inherited from
IterateeModule
final def scan[O, I](init: I)(f: (I, O) => I): Enumeratee[[A] =>> Eval[A], O, I]

An Enumeratee that folds a stream and emits intermediate results.

An Enumeratee that folds a stream and emits intermediate results.

Inherited from
EnumerateeModule
final def intersperse[E](delim: E): Enumeratee[[A] =>> Eval[A], E, E]

Add a value delim between every two items in a stream.

Add a value delim between every two items in a stream.

Inherited from
EnumerateeModule
final def foreach[E](f: E => Unit): Iteratee[[A] =>> Eval[A], E, Unit]

An Iteratee that runs a function for its side effects.

An Iteratee that runs a function for its side effects.

Inherited from
IterateeModule
final def dropI[E](n: Int): Iteratee[[A] =>> Eval[A], E, Unit]

An Iteratee that drops a given number of the values from a stream.

An Iteratee that drops a given number of the values from a stream.

Inherited from
IterateeModule
final def takeWhileM[E](p: E => Eval[Boolean]): Enumeratee[[A] =>> Eval[A], E, E]

An Enumeratee that takes values from a stream as long as they satisfy the given monadic predicate.

An Enumeratee that takes values from a stream as long as they satisfy the given monadic predicate.

Inherited from
EnumerateeModule
final def drop[E](n: Long): Enumeratee[[A] =>> Eval[A], E, E]

An Enumeratee that drops a given number of the first values in a stream.

An Enumeratee that drops a given number of the first values in a stream.

Inherited from
EnumerateeModule
final def uniq[E](E: Eq[E]): Enumeratee[[A] =>> Eval[A], E, E]

Collapse consecutive duplicates.

Collapse consecutive duplicates.

Note

Assumes that the stream is sorted.

Inherited from
EnumerateeModule
final def filter[E](p: E => Boolean): Enumeratee[[A] =>> Eval[A], E, E]

Drop values that do not satisfy the given predicate.

Drop values that do not satisfy the given predicate.

Inherited from
EnumerateeModule
final def foldMapM[E, A](f: E => Eval[A])(A: Monoid[A]): Iteratee[[A] =>> Eval[A], E, A]

An Iteratee that combines values using an effectful function to a type with a cats.Monoid instance.

An Iteratee that combines values using an effectful function to a type with a cats.Monoid instance.

Inherited from
IterateeModule
final def iterate[E](init: E)(f: E => E): Enumerator[[A] =>> Eval[A], E]

An enumerator that iteratively performs an operation and returns the results.

An enumerator that iteratively performs an operation and returns the results.

Inherited from
EnumeratorModule
final def last[E]: Iteratee[[A] =>> Eval[A], E, Option[E]]

An Iteratee that returns the last value in a stream.

An Iteratee that returns the last value in a stream.

Inherited from
IterateeModule
final def flatMap[O, I](f: O => Enumerator[[A] =>> Eval[A], I]): Enumeratee[[A] =>> Eval[A], O, I]

Map a function returning an Enumerator over a stream and flatten the results.

Map a function returning an Enumerator over a stream and flatten the results.

Inherited from
EnumerateeModule
final def sequenceI[O, I](iteratee: Iteratee[[A] =>> Eval[A], O, I]): Enumeratee[[A] =>> Eval[A], O, I]

Apply the given Iteratee repeatedly.

Apply the given Iteratee repeatedly.

Inherited from
EnumerateeModule
final def peek[E]: Iteratee[[A] =>> Eval[A], E, Option[E]]

An Iteratee that returns the first value in a stream without consuming it.

An Iteratee that returns the first value in a stream without consuming it.

Inherited from
IterateeModule
final def enumVector[E](es: Vector[E]): Enumerator[[A] =>> Eval[A], E]

An enumerator that produces values from a vector.

An enumerator that produces values from a vector.

Inherited from
EnumeratorModule
final def iterateM[E](init: E)(f: E => Eval[E]): Enumerator[[A] =>> Eval[A], E]

An enumerator that iteratively performs an effectful operation and returns the results.

An enumerator that iteratively performs an effectful operation and returns the results.

Inherited from
EnumeratorModule
final def enumIndexedSeq[E](es: IndexedSeq[E], min: Int, max: Int): Enumerator[[A] =>> Eval[A], E]

An enumerator that produces values from a slice of an indexed sequence.

An enumerator that produces values from a slice of an indexed sequence.

Inherited from
EnumeratorModule
final def repeat[E](e: E): Enumerator[[A] =>> Eval[A], E]

An enumerator that repeats the given value indefinitely.

An enumerator that repeats the given value indefinitely.

Inherited from
EnumeratorModule
final def enumerate[E](xs: E*): Enumerator[[A] =>> Eval[A], E]

An enumerator that produces the given values.

An enumerator that produces the given values.

Inherited from
EnumeratorModule
final def foldMapOption[E, A](f: E => A)(A: Semigroup[A]): Iteratee[[A] =>> Eval[A], E, Option[A]]

An Iteratee that combines values using a function to a type with a cats.Semigroup instance.

An Iteratee that combines values using a function to a type with a cats.Semigroup instance.

Inherited from
IterateeModule
Inherited from
IterateeModule
final def enumList[E](es: List[E]): Enumerator[[A] =>> Eval[A], E]

An enumerator that produces values from a list.

An enumerator that produces values from a list.

Inherited from
EnumeratorModule
final def length[E]: Iteratee[[A] =>> Eval[A], E, Long]

An Iteratee that counts the number of values in a stream.

An Iteratee that counts the number of values in a stream.

Inherited from
IterateeModule
final def empty[E]: Enumerator[[A] =>> Eval[A], E]

An empty enumerator.

An empty enumerator.

Inherited from
EnumeratorModule

An enumerator that forces the evaluation of an effect when it is consumed.

An enumerator that forces the evaluation of an effect when it is consumed.

Inherited from
EnumeratorModule
final def foldM[E, A](init: A)(f: (A, E) => Eval[A]): Iteratee[[A] =>> Eval[A], E, A]

An Iteratee that folds a stream using an initial value and a monadic accumulation function.

An Iteratee that folds a stream using an initial value and a monadic accumulation function.

Inherited from
IterateeModule
final def iterateUntilM[E](init: E)(f: E => Eval[Option[E]]): Enumerator[[A] =>> Eval[A], E]

An enumerator that iteratively performs an effectful operation until None is produced and returns the results.

An enumerator that iteratively performs an effectful operation until None is produced and returns the results.

Inherited from
EnumeratorModule
final def identityIteratee[E]: Iteratee[[A] =>> Eval[A], E, Unit]

An iteratee that reads nothing from a stream.

An iteratee that reads nothing from a stream.

Inherited from
IterateeModule
final def foldMapMOption[E, A](f: E => Eval[A])(A: Semigroup[A]): Iteratee[[A] =>> Eval[A], E, Option[A]]

An Iteratee that combines values using an effectful function to a type with a cats.Semigroup instance.

An Iteratee that combines values using an effectful function to a type with a cats.Semigroup instance.

Inherited from
IterateeModule
final def take[E](n: Long): Enumeratee[[A] =>> Eval[A], E, E]

An Enumeratee that takes a given number of the first values in a stream.

An Enumeratee that takes a given number of the first values in a stream.

Inherited from
EnumerateeModule
final def dropWhileM[E](p: E => Eval[Boolean]): Enumeratee[[A] =>> Eval[A], E, E]

An Enumeratee that drops values from a stream as long as they satisfy the given monadic predicate.

An Enumeratee that drops values from a stream as long as they satisfy the given monadic predicate.

Inherited from
EnumerateeModule
final def takeWhileI[E](p: E => Boolean): Iteratee[[A] =>> Eval[A], E, Vector[E]]

An Iteratee that returns values from a stream as long as they satisfy the given predicate.

An Iteratee that returns values from a stream as long as they satisfy the given predicate.

Inherited from
IterateeModule
final def scanM[O, I](init: I)(f: (I, O) => Eval[I]): Enumeratee[[A] =>> Eval[A], O, I]

An Enumeratee that folds a stream using an effectful function while emitting intermediate results.

An Enumeratee that folds a stream using an effectful function while emitting intermediate results.

Inherited from
EnumerateeModule
final def reversed[E]: Iteratee[[A] =>> Eval[A], E, List[E]]

An Iteratee that collects all inputs in reverse order.

An Iteratee that collects all inputs in reverse order.

Inherited from
IterateeModule
final def isEnd[E]: Iteratee[[A] =>> Eval[A], E, Boolean]

An Iteratee that checks if the stream is at its end.

An Iteratee that checks if the stream is at its end.

Inherited from
IterateeModule
final def collect[O, I](pf: PartialFunction[O, I]): Enumeratee[[A] =>> Eval[A], O, I]

Transform values using a scala.PartialFunction and drop values that aren't matched.

Transform values using a scala.PartialFunction and drop values that aren't matched.

Inherited from
EnumerateeModule

Type members

Inherited types

final type M[f[_]] = Monad[f]
Inherited from
EvalModule

Value members

Inherited methods

final def injectValue[E](e: E): Enumeratee[[A] =>> Eval[A], E, E]

Inject a value into a stream.

Inject a value into a stream.

Inherited from
EnumerateeModule
final def injectValues[E](es: Seq[E]): Enumeratee[[A] =>> Eval[A], E, E]

Inject zero or more values into a stream.

Inject zero or more values into a stream.

Inherited from
EnumerateeModule

Inherited fields

final protected val F: Monad[[A] =>> Eval[A]]
Inherited from
EvalModule