Creates a sink executing a side effect for each item and consuming the stream.
Terminal operation that triggers stream execution.
The type of items in the stream
The function to execute for each item (return value is ignored)
A sink that executes the consumer for each item and returns the number of processed items
Creates a sink executing a side effect for each item and consuming the stream.
Terminal operation that triggers stream execution.