Iter::reduce

Reduce all elements by a given function. Panic if there is no element available.

Type

reduce :: Iter a -> (a -> a -> a) -> a