Skip to content

Latest commit

 

History

History
12 lines (10 loc) · 184 Bytes

Iterators.md

File metadata and controls

12 lines (10 loc) · 184 Bytes
pub fn sum_ints(v: Vec<i128>) -> i128 { 
    let sum:i128 = v.iter().sum();
    sum
}


pub fn sum_ints_addr(v: &[i128]) -> i128 {
    let sum:i128 = v.iter().sum();
    sum
}