This crate gives Streams a reduce
function that is similar to
fold
but without an initial value. The function returns a Future
containing None
if the stream is empty and Some(value)
otherwise.
Based on David Tolnay's reduce
crate for iterators.
Examples
use Reduce;
use stream;
# block_on