re: Daily Coding Puzzles - Nov 4th - Nov 9th VIEW POST

VIEW PARENT COMMENT VIEW FULL DISCUSSION
 

Rust

fn product(list: &[i32]) -> i32 {
    list.iter().fold(1, |p, n| p * n)
}
code of conduct - report abuse