Also I'm retard and sum exists

This commit is contained in:
Scramble 2022-12-02 12:39:03 +00:00
parent 0e78baf6bc
commit 80ad4b4e1d
2 changed files with 1 additions and 1 deletions

Binary file not shown.

View File

@ -24,5 +24,5 @@ fn main() -> () {
}
}
println!("{}", top.iter().fold(0, |acc, el| { acc + el }));
println!("{}", top.iter().sum::<i32>());
}