DRC
Home
Experience
Toggle Dropdown
• Resume
• Work Experience
Research
Toggle Dropdown
• Papers
• Projects
• Notes
Learn
Projects
Write-Ups
About
Contact
Back
Rust - Iterators - Sum
Adds together all elements in the collection:
let total: i32 = vec![1, 2, 3].iter().sum(); // 6