pub fn reduce<F, T>(f: F, init: T, xs: &Vec<T>) -> T where F: Fn(T, T) -> T, T: Real,
Explicit version of reduce
reduce