Lifts a function I => F[Unit]
to Sink[F,I]
.
Sink that routes each element to one of two sinks.
Sink that routes each element to one of two sinks.
Left
values get sent to the left
sink, and likewise for Right
If either of left
or right
fails, then resulting stream will fail.
If either halts
the evaluation will halt too.
Sink that prints each string from the source to the supplied PrintStream
.
Sink that prints each element from the source to the supplied PrintStream
using the Show
instance for the input type.
Sink that prints each element from the source to the standard out
using the Show
instance for the input type.
Companion for Sink.