iter.reduce(fn)
This crate gives Iterators a reduce
function that is similar to
fold
but without an initial value. The function returns None
if
the iterator is empty and Some(value)
otherwise. This matches the distinction
between reduce
and fold
in Scala.
[]
= "0.1"
Examples
use Reduce;