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.
Repeatedly runs this sink and accumulates its outputs to a list.
Repeatedly runs this sink until i
outputs have been accumulated.
Repeatedly runs this sink and accumulates its outputs for as long as incoming values verify the predicate.
Repeatedly runs this sink and accumulates its outputs into a value
of type S
for as long as the incoming values satisfy the predicate.
Repeatedly runs this sink and accumulates the outputs 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.