Sum. Adds together all elements in the collection: let total: i32 = vec![1, 2, 3].iter().sum(); // 6.
確定! 回上一頁