Function extra::list::foldl

pub fn foldl<T: std::clone::Clone, U>(z: T, ls: @List<U>, f: &fn(&T, &U) -> T) -> T

Left fold

Applies f to u and the first element in the list, then applies f to the result of the previous call and the second element, and so on, returning the accumulated result.

Arguments