Returns a new sink that tries to produce the B
, but if there is an
error in stepping or extraction, produces None
.
Takes a Sink
, and lifts it to be chunked in its input.
Takes a Sink
, and lifts it to be chunked in its input. This
will not improve performance, but can be used to adapt non-chunked sinks
wherever chunked sinks are required.
Accumulates the output into a list.
Accumulates the output into a list of maximum size i
.
Accumulates into a list for as long as incoming values verify predicate p
.
Accumulates into a value of type S
for as long as incoming values verify predicate p
.
Accumulates the output into a value of type S
.
A named alias for ?
.
Produces a sink consuming all the elements of type A
as long as
they verify the predicate pred
.
Creates a sink that produces values until one verifies
the predicate f
.
Creates a sink that produces values until one verifies
the predicate f
.
The predicate is only verified when the underlying signals completion, or when the resulting sink is extracted. Sinks that never signal completion (e.g. ZSink.collectAll) will not have the predicate applied to intermediate values.