Iteratee

object Iteratee extends IterateeLowPriorityInstances
Companion
class
class IterateeLowPriorityInstances
class Object
trait Matchable
class Any

Document{}

final def cont[F[_], E, A](ifInput: NonEmptyList[E] => Iteratee[F, E, A], ifEnd: F[A])(`evidence$2`: Applicative[F]): Iteratee[F, 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.

final def done[F[_], E, A](value: A)(`evidence$3`: Applicative[F]): Iteratee[F, E, A]

Create a new completed Iteratee with the given result.

Create a new completed Iteratee with the given result.

final def iteratee[F[_], E, A](s: F[Step[F, E, A]]): Iteratee[F, E, A]

Create an Iteratee from a io.iteratee.internal.Step in a context.

Create an Iteratee from a io.iteratee.internal.Step in a context.

final def fromStep[F[_], E, A](s: Step[F, E, A])(F: Applicative[F]): Iteratee[F, E, A]
final def liftM[F[_], E, A](fa: F[A])(F: Monad[F]): Iteratee[F, E, A]

Lift an effectful value into an iteratee.

Lift an effectful value into an iteratee.

final def liftMEval[F[_], E, A](fa: Eval[F[A]])(F: Monad[F]): Iteratee[F, E, A]

Lift an effectful value into an iteratee.

Lift an effectful value into an iteratee.

final def fail[F[_], T, E, A](e: T)(F: MonadError[F, T]): Iteratee[F, E, A]

Create a failed iteratee with the given error.

Create a failed iteratee with the given error.

final def identity[F[_], E](`evidence$4`: Applicative[F]): Iteratee[F, E, Unit]

An iteratee that reads nothing from a stream.

An iteratee that reads nothing from a stream.

final def joinI[F[_], E, I, B](it: Iteratee[F, E, Step[F, I, B]])(F: Monad[F]): Iteratee[F, E, B]

Collapse an Iteratee returning a io.iteratee.internal.Step into one layer.

Collapse an Iteratee returning a io.iteratee.internal.Step into one layer.

final def fold[F[_], E, A](init: A)(f: (A, E) => A)(`evidence$5`: Applicative[F]): Iteratee[F, 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.

final def foldM[F[_], E, A](init: A)(f: (A, E) => F[A])(F: Monad[F]): Iteratee[F, 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.

final def consume[F[_], A](`evidence$6`: Applicative[F]): Iteratee[F, A, Vector[A]]

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.

final def consumeIn[F[_], A, C[_]](`evidence$7`: Applicative[F], `evidence$8`: Applicative[C], `evidence$9`: MonoidK[C]): Iteratee[F, A, C[A]]

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.

final def head[F[_], E](`evidence$10`: Applicative[F]): Iteratee[F, E, Option[E]]

An Iteratee that returns the first value in a stream.

An Iteratee that returns the first value in a stream.

final def peek[F[_], E](`evidence$11`: Applicative[F]): Iteratee[F, 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.

final def last[F[_], E](`evidence$12`: Applicative[F]): Iteratee[F, E, Option[E]]

An Iteratee that returns the last value in a stream.

An Iteratee that returns the last value in a stream.

final def take[F[_], A](n: Int)(`evidence$13`: Applicative[F]): Iteratee[F, A, Vector[A]]

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.

final def takeWhile[F[_], A](p: A => Boolean)(`evidence$14`: Applicative[F]): Iteratee[F, A, Vector[A]]

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.

final def drop[F[_], E](n: Int)(`evidence$15`: Applicative[F]): Iteratee[F, 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.

final def dropWhile[F[_], E](p: E => Boolean)(`evidence$16`: Applicative[F]): Iteratee[F, 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.

final def reversed[F[_], A](`evidence$17`: Applicative[F]): Iteratee[F, A, List[A]]

An Iteratee that collects all inputs in reverse order.

An Iteratee that collects all inputs in reverse order.

final def length[F[_], E](`evidence$18`: Applicative[F]): Iteratee[F, E, Long]

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

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

final def sum[F[_], E](`evidence$19`: Applicative[F], `evidence$20`: Monoid[E]): Iteratee[F, E, E]

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

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

final def foldMap[F[_], E, A](f: E => A)(`evidence$21`: Applicative[F], `evidence$22`: Monoid[A]): Iteratee[F, 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.

final def foldMapM[F[_], E, A](f: E => F[A])(`evidence$23`: Applicative[F], `evidence$24`: Monoid[A]): Iteratee[F, 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.

final def foldMapOption[F[_], E, A](f: E => A)(F: Applicative[F], A: Semigroup[A]): Iteratee[F, 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.

final def foldMapMOption[F[_], E, A](f: E => F[A])(F: Applicative[F], A: Semigroup[A]): Iteratee[F, 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.

final def isEnd[F[_], E](`evidence$25`: Applicative[F]): Iteratee[F, E, Boolean]

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

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

Value members

Concrete methods

def foreach[F[_], A](f: A => Unit)(`evidence$26`: Applicative[F]): Iteratee[F, A, Unit]

An Iteratee that runs a function for its side effects.

An Iteratee that runs a function for its side effects.

def foreachM[F[_], A](f: A => F[Unit])(`evidence$27`: Monad[F]): Iteratee[F, A, Unit]

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

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

Implicits

Implicits

final implicit def iterateeContravariant[F[_], A](F: Monad[F]): Contravariant[[_] =>> Iteratee[F, _$26, A]]
final implicit def iterateeMonadError[F[_], T, E](F: MonadError[F, T]): MonadError[[_] =>> Iteratee[F, E, _$29], T]

Inherited implicits

final implicit def iterateeMonad[F[_], E](F: Monad[F]): Monad[[_] =>> Iteratee[F, E, _$24]]
Inherited from
IterateeLowPriorityInstances