StreamT monad transformer.
- Companion
- object
Value members
Abstract methods
Concrete methods
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.
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.
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.
foldRight
with potential to terminate early, e.g. on an infinite stream.
foldRight
with potential to terminate early, e.g. on an infinite stream.
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.
- Type Params
- B
element type of the resulting collection
- Value Params
- op
the associative operator for the scan
- Returns
a new StreamT containing the prefix scan of the elements in this $coll
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.
- Type Params
- B
the type of the elements in the resulting collection
- Value Params
- head
the initial value
- op
the binary operator applied to the intermediate result and the element
- Returns
collection with intermediate results
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
.
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
.
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
.
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
.