Class/Object

scalaz

StreamT

Related Docs: object StreamT | package scalaz

Permalink

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]]])

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def ++(bs: ⇒ StreamT[M, A])(implicit m: Functor[M]): StreamT[M, A]

    Permalink
  4. def ::(a: ⇒ A)(implicit M: Applicative[M]): StreamT[M, A]

    Permalink
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def asStream(implicit ev: =:=[M[Step[A, StreamT[M, A]]], Id.Id[Step[A, StreamT[Id.Id, A]]]]): Stream[A]

    Permalink

    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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def drop(n: Int)(implicit M: Functor[M]): StreamT[M, A]

    Permalink
  10. def dropWhile(p: (A) ⇒ Boolean)(implicit m: Functor[M]): StreamT[M, A]

    Permalink
  11. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  13. def filter(p: (A) ⇒ Boolean)(implicit m: Functor[M]): StreamT[M, A]

    Permalink
  14. def finalize(): Unit

    Permalink
    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]

    Permalink
  16. def foldLeft[B](z: ⇒ B)(f: (⇒ B, ⇒ A) ⇒ B)(implicit M: Monad[M]): M[B]

    Permalink
  17. def foldLeftRec[B](z: B)(f: (B, A) ⇒ B)(implicit M: BindRec[M]): M[B]

    Permalink
  18. def foldMap[B](f: (A) ⇒ B)(implicit M: Foldable[M], B: Monoid[B]): B

    Permalink
  19. def foldRight[B](z: ⇒ B)(f: (⇒ A, ⇒ B) ⇒ B)(implicit M: Monad[M]): M[B]

    Permalink
  20. def foldRightM[B](z: ⇒ M[B])(f: (⇒ A, ⇒ M[B]) ⇒ M[B])(implicit M: Monad[M]): M[B]

    Permalink

    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]

    Permalink
  22. def foreach(f: (A) ⇒ M[Unit])(implicit M: Monad[M]): M[Unit]

    Permalink
  23. def foreachRec(f: (A) ⇒ M[Unit])(implicit M: Monad[M], B: BindRec[M]): M[Unit]

    Permalink
  24. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  25. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  26. def head(implicit M: Monad[M]): M[A]

    Permalink
  27. def headOption(implicit M: Monad[M]): M[Option[A]]

    Permalink
  28. def headOptionRec(implicit M: BindRec[M]): M[Option[A]]

    Permalink
  29. def headRec(implicit M: BindRec[M]): M[A]

    Permalink
  30. def isEmpty(implicit M: Monad[M]): M[Boolean]

    Permalink
  31. def isEmptyRec(implicit M: BindRec[M]): M[Boolean]

    Permalink
  32. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  33. def length(implicit m: Monad[M]): M[Int]

    Permalink
  34. def lengthRec(implicit M: BindRec[M]): M[Int]

    Permalink
  35. def map[B](f: (A) ⇒ B)(implicit m: Functor[M]): StreamT[M, B]

    Permalink
  36. def mapM[B](f: (A) ⇒ M[B])(implicit m: Monad[M]): StreamT[M, B]

    Permalink

    Since

    7.0.1

  37. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  38. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  39. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  40. val step: M[Step[A, StreamT[M, A]]]

    Permalink
  41. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  42. def tail(implicit m: Functor[M]): StreamT[M, A]

    Permalink

    Don't use iteratively!

  43. def tailM(implicit M: Monad[M]): M[StreamT[M, A]]

    Permalink
  44. def tailMRec(implicit M: BindRec[M]): M[StreamT[M, A]]

    Permalink
  45. def take(n: Int)(implicit M: Functor[M]): StreamT[M, A]

    Permalink
  46. def takeWhile(p: (A) ⇒ Boolean)(implicit m: Functor[M]): StreamT[M, A]

    Permalink
  47. def toStream(implicit M: Monad[M]): M[Stream[A]]

    Permalink

    **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]]

    Permalink

    **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

    Permalink
    Definition Classes
    AnyRef → Any
  50. def trans[N[_]](t: ~>[M, N])(implicit M: Functor[M], N: Functor[N]): StreamT[N, A]

    Permalink
  51. def uncons(implicit M: Monad[M]): M[Option[(A, StreamT[M, A])]]

    Permalink
  52. def unconsRec(implicit M: BindRec[M]): M[Option[(A, StreamT[M, A])]]

    Permalink
  53. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  54. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  55. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped