Function core::result::fold [] [src]

pub fn fold<T, V, E, F: FnMut(V, T) -> V, Iter: Iterator<Item=Result<T, E>>>(iterator: Iter, init: V, f: F) -> Result<V, E>
Deprecated since 1.2.0

: has not seen enough usage to justify its position in the standard library

Performs a fold operation over the result values from an iterator.

If an Err is encountered, it is immediately returned. Otherwise, the folded value is returned.