Function sum

Source
pub fn sum<A>(xs: &[A]) -> A
where A: Clone + Add<Output = A> + Zero,
Expand description

Compute the sum of the values in xs

With "use_nightly", this is special cased for f32, f64.