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 foldMap[B](f: (A) ⇒ B)(implicit M: Foldable[M], B: Monoid[B]): B

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

    Permalink
  19. 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.

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

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

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

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

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

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

    Permalink
  26. final def isInstanceOf[T0]: Boolean

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

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

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

    Permalink

    Since

    7.0.1

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

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

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

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

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

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

    Permalink

    Don't use iteratively!

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

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

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

    Permalink
  39. 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.

  40. def toString(): String

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

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

    Permalink
  43. final def wait(): Unit

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped