StackUnsafe

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.

class Object
trait Matchable
class Any

Value members

Concrete methods

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

An enumerator that produces values from a stream.

An enumerator that produces values from a stream.

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.

Note that this implementation will only be stack safe if recursive monadic binding in F is stack safe.

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.

Note that this implementation will only be stack safe if recursive monadic binding in F is stack safe.

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.

Note that this implementation will only be stack safe if recursive monadic binding in F is stack safe.

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.

Note that this implementation will only be stack safe if recursive monadic binding in F is stack safe.

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.

Note that this implementation will only be stack safe if recursive monadic binding in F is stack safe.

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.

Note that this implementation will only be stack safe if recursive monadic binding in F is stack safe.