Skip to main content

fold

Function fold 

Source
pub fn fold<T, A>(items: &[T], start: A, step: fn(A, &T) -> A) -> A