Enumerator

object Enumerator
Companion
class
class Object
trait Matchable
class Any

Type members

Classlikes

object StackUnsafe

Enumerators that rely on F to provide stack safety.

Enumerators that rely on F to provide stack safety.

These implementations will generally be more efficient than the default ones, but will not be stack safe unless recursive monadic binding in F is stack safe.

Value members

Concrete methods

def defer[F[_], A](e: => Enumerator[F, A]): Enumerator[F, A]
final def empty[F[_], E](F: Applicative[F]): Enumerator[F, E]

An empty enumerator.

An empty enumerator.

final def enumEither[F[_], T, E](either: Either[T, E])(F: MonadError[F, T]): Enumerator[F, E]

An enumerator that either produces a single value or fails.

An enumerator that either produces a single value or fails.

final def enumIndexedSeq[F[_], E](xs: IndexedSeq[E], min: Int, max: Int)(F: Applicative[F]): Enumerator[F, 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.

final def enumIterable[F[_], E](xs: Iterable[E], chunkSize: Int)(`evidence$2`: Monad[F]): Enumerator[F, E]

An enumerator that produces values from an iterable collection.

An enumerator that produces values from an iterable collection.

final def enumList[F[_], E](xs: List[E])(F: Applicative[F]): Enumerator[F, E]

An enumerator that produces values from a list.

An enumerator that produces values from a list.

final def enumOne[F[_], E](e: E)(`evidence$1`: Applicative[F]): Enumerator[F, E]

An enumerator that produces a single value.

An enumerator that produces a single value.

final def enumStream[F[_], E](xs: Stream[E], chunkSize: Int)(`evidence$3`: Monad[F]): Enumerator[F, E]

An enumerator that produces values from a stream.

An enumerator that produces values from a stream.

final def enumVector[F[_], E](xs: Vector[E])(F: Applicative[F]): Enumerator[F, E]

An enumerator that produces values from a vector.

An enumerator that produces values from a vector.

final def enumerate[F[_], E](xs: E*)(F: Applicative[F]): Enumerator[F, E]

An enumerator that produces the given values.

An enumerator that produces the given values.

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

Create a failed enumerator with the given error.

Create a failed enumerator with the given error.

final def generateM[F[_], E](f: F[Option[E]])(F: Monad[F]): Enumerator[F, 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.

final def iterate[F[_], E](init: E)(f: E => E)(F: Monad[F]): Enumerator[F, E]

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

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

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

final def iterateUntil[F[_], E](init: E)(f: E => Option[E])(F: Monad[F]): Enumerator[F, E]

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

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

final def iterateUntilM[F[_], E](init: E)(f: E => F[Option[E]])(F: Monad[F]): Enumerator[F, E]

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

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

final def liftM[F[_], E](fa: F[E])(F: FlatMap[F]): Enumerator[F, E]

Lift an effectful value into an enumerator.

Lift an effectful value into an enumerator.

final def liftMEval[F[_], E](fa: Eval[F[E]])(F: FlatMap[F]): Enumerator[F, E]

Lift an effectful value in a cats.Eval into an enumerator.

Lift an effectful value in a cats.Eval into an enumerator.

final def perform[F[_], E, B](f: F[B])(F: FlatMap[F]): Enumerator[F, E]

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.

final def repeat[F[_], E](e: E)(F: Monad[F]): Enumerator[F, E]

An enumerator that repeats the given value indefinitely.

An enumerator that repeats the given value indefinitely.

Implicits

Implicits

implicit def enumeratorDefer[F[_]]: Defer[[_] =>> Enumerator[F, _$12]]
final implicit def enumeratorMonad[F[_]](F: Monad[F]): Monad[[_] =>> Enumerator[F, _$15]]
final implicit def enumeratorMonoid[F[_], E](F: Monad[F]): Monoid[Enumerator[F, E]]