EnumerateeModule

trait EnumerateeModule[F[_]]
class Object
trait Matchable
class Any
object either
object eitherT
object eval
trait IdModule
object id
object option
trait TryModule
object try_

Document{}

final def map[O, I](f: O => I): Enumeratee[F, O, I]

Map a function over a stream.

Map a function over a stream.

final def flatMapM[O, I](f: O => F[I]): Enumeratee[F, 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.

final def flatMap[O, I](f: O => Enumerator[F, I]): Enumeratee[F, 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.

final def take[E](n: Long): Enumeratee[F, 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.

final def takeWhile[E](p: E => Boolean): Enumeratee[F, 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.

final def takeWhileM[E](p: E => F[Boolean]): Enumeratee[F, 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.

final def drop[E](n: Long): Enumeratee[F, 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.

final def dropWhile[E](p: E => Boolean): Enumeratee[F, 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.

final def dropWhileM[E](p: E => F[Boolean]): Enumeratee[F, 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.

final def collect[O, I](pf: PartialFunction[O, I]): Enumeratee[F, 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.

final def filter[E](p: E => Boolean): Enumeratee[F, E, E]

Drop values that do not satisfy the given predicate.

Drop values that do not satisfy the given predicate.

final def filterM[E](p: E => F[Boolean]): Enumeratee[F, E, E]

Drop values that do not satisfy the given monadic predicate.

Drop values that do not satisfy the given monadic predicate.

final def sequenceI[O, I](iteratee: Iteratee[F, O, I]): Enumeratee[F, O, I]

Apply the given Iteratee repeatedly.

Apply the given Iteratee repeatedly.

final def scan[O, I](init: I)(f: (I, O) => I): Enumeratee[F, O, I]

An Enumeratee that folds a stream and emits intermediate results.

An Enumeratee that folds a stream and emits intermediate results.

final def scanM[O, I](init: I)(f: (I, O) => F[I]): Enumeratee[F, 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.

final def remainderWithResult[O, R, I](iteratee: Iteratee[F, O, R])(f: (R, O) => I): Enumeratee[F, 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.

final def remainderWithResultM[O, R, I](iteratee: Iteratee[F, O, R])(f: (R, O) => F[I]): Enumeratee[F, 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.

final def uniq[E](E: Eq[E]): Enumeratee[F, E, E]

Collapse consecutive duplicates.

Collapse consecutive duplicates.

Note

Assumes that the stream is sorted.

final def zipWithIndex[E]: Enumeratee[F, E, (E, Long)]

Zip with the number of elements that have been encountered.

Zip with the number of elements that have been encountered.

final def grouped[E](n: Int): Enumeratee[F, E, Vector[E]]

Split the stream into groups of a given length.

Split the stream into groups of a given length.

final def splitOn[E](p: E => Boolean): Enumeratee[F, E, Vector[E]]

Split the stream using the given predicate to identify delimiters.

Split the stream using the given predicate to identify delimiters.

final def cross[E1, E2](e2: Enumerator[F, E2]): Enumeratee[F, 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.

final def intersperse[E](delim: E): Enumeratee[F, E, E]

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

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

Value members

Concrete methods

final def injectValue[E](e: E): Enumeratee[F, E, E]

Inject a value into a stream.

Inject a value into a stream.

final def injectValues[E](es: Seq[E]): Enumeratee[F, E, E]

Inject zero or more values into a stream.

Inject zero or more values into a stream.