nick34992
4/12/2017 - 7:57 PM

Rust: Fold

Rust: Fold

fn main() {
  let sum = (0..101).fold(0, |sum, n| sum + n);
  println!("{}", sum);
}