scalaz

StreamT

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
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

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

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

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

  6. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  7. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. 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.

    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.

  10. def clone(): AnyRef

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

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

  13. final def eq(arg0: AnyRef): Boolean

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

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

  16. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. def flatMap[B](f: (A) ⇒ StreamT[M, B])(implicit m: Functor[M]): StreamT[M, B]

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

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

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

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

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

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

  23. final def getClass(): Class[_]

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

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

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

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

  28. final def isInstanceOf[T0]: Boolean

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

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

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

    Since

    7.0.1

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

    Definition Classes
    AnyRef
  33. final def notify(): Unit

    Definition Classes
    AnyRef
  34. final def notifyAll(): Unit

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

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

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

    Don't use iteratively!

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

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

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

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

  42. def toString(): String

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

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

  45. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped