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. Protected

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[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  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: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  13. def filter(p: (A) => Boolean)(implicit m: Functor[M]): StreamT[M, A]
  14. def finalize(): Unit
    Attributes
    protected[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 foldLeftRec[B](z: B)(f: (B, A) => B)(implicit M: BindRec[M]): M[B]
  18. def foldMap[B](f: (A) => B)(implicit M: Foldable[M], B: Monoid[B]): B
  19. def foldRight[B](z: => B)(f: (=> A, => B) => B)(implicit M: Monad[M]): M[B]
  20. 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.

  21. def foldRightRec[B](z: => B)(f: (=> A, => B) => B)(implicit M: BindRec[M]): M[B]
  22. def foreach(f: (A) => M[Unit])(implicit M: Monad[M]): M[Unit]
  23. def foreachRec(f: (A) => M[Unit])(implicit M: Monad[M], B: BindRec[M]): M[Unit]
  24. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  25. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  26. def head(implicit M: Monad[M]): M[A]
  27. def headOption(implicit M: Monad[M]): M[Option[A]]
  28. def headOptionRec(implicit M: BindRec[M]): M[Option[A]]
  29. def headRec(implicit M: BindRec[M]): M[A]
  30. def isEmpty(implicit M: Monad[M]): M[Boolean]
  31. def isEmptyRec(implicit M: BindRec[M]): M[Boolean]
  32. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  33. def length(implicit m: Monad[M]): M[Int]
  34. def lengthRec(implicit M: BindRec[M]): M[Int]
  35. def map[B](f: (A) => B)(implicit m: Functor[M]): StreamT[M, B]
  36. def mapM[B](f: (A) => M[B])(implicit m: Monad[M]): StreamT[M, B]

    Since

    7.0.1

  37. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  38. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  39. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  40. val step: M[Step[A, StreamT[M, A]]]
  41. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  42. def tail(implicit m: Functor[M]): StreamT[M, A]

    Don't use iteratively!

  43. def tailM(implicit M: Monad[M]): M[StreamT[M, A]]
  44. def tailMRec(implicit M: BindRec[M]): M[StreamT[M, A]]
  45. def take(n: Int)(implicit M: Functor[M]): StreamT[M, A]
  46. def takeWhile(p: (A) => Boolean)(implicit m: Functor[M]): StreamT[M, A]
  47. 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.

  48. def toStreamRec(implicit M: BindRec[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.

  49. def toString(): String
    Definition Classes
    AnyRef → Any
  50. def trans[N[_]](t: ~>[M, N])(implicit M: Functor[M], N: Functor[N]): StreamT[N, A]
  51. def uncons(implicit M: Monad[M]): M[Option[(A, StreamT[M, A])]]
  52. def unconsRec(implicit M: BindRec[M]): M[Option[(A, StreamT[M, A])]]
  53. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  54. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  55. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped