Concatenates with another stream in strict order
Drops all elements of the stream for as long as the specified predicate
evaluates to true
.
Filters this stream by the specified predicate, retaining all elements for which the predicate evaluates to true.
Filters this stream by the specified predicate, removing all elements for which the predicate evaluates to true.
Returns a stream made of the concatenation in strict order of all the streams
produced by passing each element of this stream to f0
Returns a stream made of the concatenation of all the chunks in this stream
Executes an effectful fold over the stream of values.
Executes an effectful fold over the stream of chunks.
Reduces the elements in the stream to a value of type S
Consumes all elements of the stream, passing them to the specified callback.
Consumes elements of the stream, passing them to the specified callback,
and terminating consumption when the callback returns false
.
Returns a stream made of the elements of this stream transformed with f0
Statefully maps over the elements of this stream to produce new elements.
Maps each element to a chunk, and flattens the chunks into the output of this stream.
Maps over elements of the stream with the specified effectful function.
Runs the sink on the stream to produce either the sink's result or an error.
Takes all elements of the stream for as long as the specified predicate
evaluates to true
.
Adds an effect to consumption of every element of the stream.
Converts the stream to a managed queue.
Converts the stream to a managed queue. After managed queue is used, the queue will never again produce chunks and should be discarded.
Converts the stream to a managed queue and immediately consume its elements.
Zips this stream together with the index of elements of the stream across chunks.
A
ZStreamChunk[R, E, A]
represents an effectful stream that can produce values of typeA
, or potentially fail with a value of typeE
.ZStreamChunk
differs fromZStream
in that elements in the stream are processed in batches, which is orders of magnitude more efficient than dealing with each element individually.ZStreamChunk
is particularly suited for situations where you are dealing with values of primitive types, e.g. those coming off ajava.io.InputStream