You are viewing a single comment's thread. Return to all comments →
Rust
fn simple_array_sum(ar: &[i32]) -> i32 { let mut counter = 0;
for i in ar { counter += i; } counter
}
Seems like cookies are disabled on this browser, please enable them to open this website
Simple Array Sum
You are viewing a single comment's thread. Return to all comments →
Rust
fn simple_array_sum(ar: &[i32]) -> i32 { let mut counter = 0;
}