Packages

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

StreamT monad transformer.

Self Type
StreamT[M, A]
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()

Abstract Value Members

  1. abstract def step(): M[Step[M, A]]

Concrete 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 asLazyList(implicit ev: ===[M[Step[M, A]], Id.Id[Step[Id.Id, A]]]): LazyList[A]

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

    Converts this StreamT to a lazy LazyList, 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 collect[B](pf: PartialFunction[A, B])(implicit M: Functor[M]): StreamT[M, B]
  10. def distinctUntilChanged(implicit M: Functor[M], A: Equal[A]): StreamT[M, A]

    Returns a new StreamT only containing items that are different from their previous items.

    Returns a new StreamT only containing items that are different from their previous items.

  11. def distinctUntilChanged(latest: A)(implicit M: Functor[M], A: Equal[A]): StreamT[M, A]

    Returns a new StreamT only containing items that are different from their previous items.

  12. def drop(n: Int)(implicit M: Functor[M]): StreamT[M, A]
  13. def dropWhile(p: (A) => Boolean)(implicit m: Functor[M]): StreamT[M, A]
  14. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  16. def filter(p: (A) => Boolean)(implicit m: Functor[M]): StreamT[M, A]
  17. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  18. def flatMap[B](f: (A) => StreamT[M, B])(implicit m: Functor[M]): StreamT[M, B]
  19. def flatMapLatest[B](f: (A) => StreamT[M, B])(implicit M: Nondeterminism[M]): StreamT[M, B]

    The flatMapLatest operator behaves much like the mergeMap except that whenever a new item is emitted by the source StreamT, it will not subscribe to and stop mirroring the StreamT that was generated from the previously-emitted item, and begin only mirroring the current one.

    The flatMapLatest operator behaves much like the mergeMap except that whenever a new item is emitted by the source StreamT, it will not subscribe to and stop mirroring the StreamT that was generated from the previously-emitted item, and begin only mirroring the current one.

  20. def foldLeft[B](z: B)(f: (B, A) => B)(implicit M: Monad[M]): M[B]
  21. def foldLeftRec[B](z: B)(f: (B, A) => B)(implicit M: BindRec[M]): M[B]
  22. def foldMap[B](f: (A) => B)(implicit M: Foldable[M], B: Monoid[B]): B
  23. def foldRight[B](z: => B)(f: (=> A, => B) => B)(implicit M: Monad[M]): M[B]
  24. 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.

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

    Since

    7.0.1

  41. def memoize(implicit m: Functor[M]): StreamT[M, A]
  42. def mergeMap[B](f: (A) => StreamT[M, B])(implicit M: Nondeterminism[M]): StreamT[M, B]
  43. def mergeWith(f2: => StreamT[M, A])(implicit M: Nondeterminism[M]): StreamT[M, A]
  44. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  45. def noSkip(implicit M: Monad[M]): StreamT[M, A]

    Returns a new StreamT that does not contain StreamT.Skip steps, while yields the same elements as this.

  46. def noSkipRec(implicit M: BindRec[M]): StreamT[M, A]

    Returns a new StreamT that does not contain StreamT.Skip steps, while yields the same elements as this.

    Returns a new StreamT that does not contain StreamT.Skip steps, while yields the same elements as this.

    Note

    Unlike noSkip, this noSkipRec is stack safe.

  47. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  48. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  49. def postScanLeft[B](head: B)(op: (B, A) => B)(implicit M: Functor[M]): StreamT[M, B]
  50. def scan[B >: A](op: (B, B) => B)(implicit M: Functor[M]): StreamT[M, B]

    Computes a prefix scan of the elements of the collection.

    Computes a prefix scan of the elements of the collection.

    Note: The neutral element B may be applied more than once.

    B

    element type of the resulting collection

    op

    the associative operator for the scan

    returns

    a new StreamT containing the prefix scan of the elements in this $coll

  51. def scanLeft[B](head: B)(op: (B, A) => B)(implicit M: Applicative[M]): StreamT[M, B]

    Produces a StreamT containing cumulative results of applying the operator going left to right, including the initial value.

    Produces a StreamT containing cumulative results of applying the operator going left to right, including the initial value.

    B

    the type of the elements in the resulting collection

    head

    the initial value

    op

    the binary operator applied to the intermediate result and the element

    returns

    collection with intermediate results

  52. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  53. def tailM(implicit M: Monad[M]): M[StreamT[M, A]]
  54. def tailMRec(implicit M: BindRec[M]): M[StreamT[M, A]]
  55. def tailOption(implicit M: Monad[M]): M[Option[StreamT[M, A]]]
  56. def tailOptionRec(implicit M: BindRec[M]): M[Option[StreamT[M, A]]]
  57. def take(n: Int)(implicit M: Functor[M]): StreamT[M, A]
  58. def takeWhile(p: (A) => Boolean)(implicit m: Functor[M]): StreamT[M, A]
  59. def toLazyList(implicit M: Monad[M]): M[LazyList[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 LazyList is extracted from the returned M.

  60. def toLazyListRec(implicit M: BindRec[M]): M[LazyList[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 LazyList is extracted from the returned M.

  61. def toString(): String
    Definition Classes
    AnyRef → Any
  62. def trans[N[_]](t: ~>[M, N])(implicit M: Functor[M]): StreamT[N, A]
  63. def uncons(implicit M: Monad[M]): M[Option[(A, StreamT[M, A])]]
  64. def unconsRec(implicit M: BindRec[M]): M[Option[(A, StreamT[M, A])]]
  65. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  66. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  67. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  68. def weakMemoize(implicit m: Functor[M]): StreamT[M, A]

Inherited from AnyRef

Inherited from Any

Ungrouped