Also I'm retard and sum exists
This commit is contained in:
1 parent
0e78baf6bc
commit
80ad4b4e1d
2 files changed
+1
-1
No files matched your search
BIN
Binary file not shown.
+1
-1
@@ -24,5 +24,5 @@ fn main() -> () {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
println!("{}", top.iter().fold(0, |acc, el| { acc + el }));
|
println!("{}", top.iter().sum::<i32>());
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user