object Enumerator extends EnumeratorInstances with Serializable
- Source
- Enumerator.scala
- Alphabetic
- By Inheritance
- Enumerator
- Serializable
- Serializable
- EnumeratorInstances
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
empty[F[_], E](implicit F: Applicative[F]): Enumerator[F, E]
An empty enumerator.
-
final
def
enumEither[F[_], T, E](either: Either[T, E])(implicit F: MonadError[F, T]): Enumerator[F, E]
An enumerator that either produces a single value or fails.
-
final
def
enumIndexedSeq[F[_], E](xs: IndexedSeq[E], min: Int = 0, max: Int = Int.MaxValue)(implicit F: Applicative[F]): Enumerator[F, E]
An enumerator that produces values from a slice of an indexed sequence.
-
final
def
enumIterable[F[_], E](xs: Iterable[E], chunkSize: Int = defaultChunkSize)(implicit arg0: Monad[F]): Enumerator[F, E]
An enumerator that produces values from an iterable collection.
-
final
def
enumList[F[_], E](xs: List[E])(implicit F: Applicative[F]): Enumerator[F, E]
An enumerator that produces values from a list.
-
final
def
enumOne[F[_], E](e: E)(implicit arg0: Applicative[F]): Enumerator[F, E]
An enumerator that produces a single value.
-
final
def
enumStream[F[_], E](xs: Stream[E], chunkSize: Int = defaultChunkSize)(implicit arg0: Monad[F]): Enumerator[F, E]
An enumerator that produces values from a stream.
-
final
def
enumVector[F[_], E](xs: Vector[E])(implicit F: Applicative[F]): Enumerator[F, E]
An enumerator that produces values from a vector.
-
final
def
enumerate[F[_], E](xs: E*)(implicit F: Applicative[F]): Enumerator[F, E]
An enumerator that produces the given values.
-
implicit final
def
enumeratorMonad[F[_]](implicit M0: Monad[F]): Monad[[β$0$]Enumerator[F, β$0$]]
- Definition Classes
- EnumeratorInstances
-
implicit final
def
enumeratorMonoid[F[_], E](implicit arg0: Monad[F]): Monoid[Enumerator[F, E]]
- Definition Classes
- EnumeratorInstances
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
fail[F[_], T, E](e: T)(implicit F: MonadError[F, T]): Enumerator[F, E]
Create a failed enumerator with the given error.
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
generateM[F[_], E](f: F[Option[E]])(implicit F: Monad[F]): Enumerator[F, E]
An enumerator that returns the result of an effectful operation until
None
is generated. -
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
iterate[F[_], E](init: E)(f: (E) ⇒ E)(implicit F: Monad[F]): Enumerator[F, E]
An enumerator that iteratively performs an operation and returns the results.
-
final
def
iterateM[F[_], E](init: E)(f: (E) ⇒ F[E])(implicit F: Monad[F]): Enumerator[F, E]
An enumerator that iteratively performs an effectful operation and returns the results.
-
final
def
iterateUntil[F[_], E](init: E)(f: (E) ⇒ Option[E])(implicit F: Monad[F]): Enumerator[F, E]
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]])(implicit F: Monad[F]): Enumerator[F, E]
An enumerator that iteratively performs an effectful operation until
None
is generated and returns the results. -
final
def
liftM[F[_], E](fa: F[E])(implicit F: FlatMap[F]): Enumerator[F, E]
Lift an effectful value into an enumerator.
-
final
def
liftMEval[F[_], E](fa: Eval[F[E]])(implicit F: FlatMap[F]): Enumerator[F, E]
Lift an effectful value in a cats.Eval into an enumerator.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
perform[F[_], E, B](f: F[B])(implicit F: FlatMap[F]): Enumerator[F, E]
An enumerator that forces the evaluation of an effect when it is consumed.
-
final
def
repeat[F[_], E](e: E)(implicit F: Monad[F]): Enumerator[F, E]
An enumerator that repeats the given value indefinitely.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
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.