eval
Log in

Sum of array

100 points

Implement sum, which adds up every element of a slice.

Required signature

pub fn sum(values: &[i32]) -> i32

Visible tests

Your solution

Log in to submit a solution.