Packages

sealed class StreamT[M[_], A] extends AnyRef

StreamT monad transformer.

Source
StreamT.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. StreamT
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new StreamT(step: M[Step[A, StreamT[M, A]]])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def ++(bs: ⇒ StreamT[M, A])(implicit m: Functor[M]): StreamT[M, A]
  4. def ::(a: ⇒ A)(implicit M: Applicative[M]): StreamT[M, A]
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def asStream(implicit ev: =:=[M[Step[A, StreamT[M, A]]], Id.Id[Step[A, StreamT[Id.Id, A]]]]): Stream[A]

    Converts this StreamT to a lazy Stream, i.e.

    Converts this StreamT to a lazy Stream, i.e. without forcing evaluation of all elements. Note, however, that at least one element of this stream will be evaluated, and depending on the structure of this stream, up to two elements might be evaluated.

  8. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def drop(n: Int)(implicit M: Functor[M]): StreamT[M, A]
  10. def dropWhile(p: (A) ⇒ Boolean)(implicit m: Functor[M]): StreamT[M, A]
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  13. def filter(p: (A) ⇒ Boolean)(implicit m: Functor[M]): StreamT[M, A]
  14. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. def flatMap[B](f: (A) ⇒ StreamT[M, B])(implicit m: Functor[M]): StreamT[M, B]
  16. def foldLeft[B](z: ⇒ B)(f: (⇒ B, ⇒ A) ⇒ B)(implicit M: Monad[M]): M[B]
  17. def foldMap[B](f: (A) ⇒ B)(implicit M: Foldable[M], B: Monoid[B]): B
  18. def foldRight[B](z: ⇒ B)(f: (⇒ A, ⇒ B) ⇒ B)(implicit M: Monad[M]): M[B]
  19. def foldRightM[B](z: ⇒ M[B])(f: (⇒ A, ⇒ M[B]) ⇒ M[B])(implicit M: Monad[M]): M[B]

    foldRight with potential to terminate early, e.g.

    foldRight with potential to terminate early, e.g. on an infinite stream.

  20. def foreach(f: (A) ⇒ M[Unit])(implicit M: Monad[M]): M[Unit]
  21. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  22. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  23. def head(implicit M: Monad[M]): M[A]
  24. def headOption(implicit M: Monad[M]): M[Option[A]]
  25. def isEmpty(implicit M: Monad[M]): M[Boolean]
  26. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  27. def length(implicit m: Monad[M]): M[Int]
  28. def map[B](f: (A) ⇒ B)(implicit m: Functor[M]): StreamT[M, B]
  29. def mapM[B](f: (A) ⇒ M[B])(implicit m: Monad[M]): StreamT[M, B]

    Since

    7.0.1

  30. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  31. final def notify(): Unit
    Definition Classes
    AnyRef
  32. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  33. val step: M[Step[A, StreamT[M, A]]]
  34. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  35. def tail(implicit m: Functor[M]): StreamT[M, A]

    Don't use iteratively!

  36. def tailM(implicit M: Monad[M]): M[StreamT[M, A]]
  37. def take(n: Int)(implicit M: Functor[M]): StreamT[M, A]
  38. def takeWhile(p: (A) ⇒ Boolean)(implicit m: Functor[M]): StreamT[M, A]
  39. def toStream(implicit M: Monad[M]): M[Stream[A]]

    **Warning:** Requires evaluation of the whole stream.

    **Warning:** Requires evaluation of the whole stream. Depending on the monad M, the evaluation will happen either immediately, or will be deferred until the resulting Stream is extracted from the returned M.

  40. def toString(): String
    Definition Classes
    AnyRef → Any
  41. def trans[N[_]](t: ~>[M, N])(implicit M: Monad[M], N: Functor[N]): StreamT[N, A]
  42. def uncons(implicit M: Monad[M]): M[Option[(A, StreamT[M, A])]]
  43. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  45. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped