Iterator::sum was stabilized in Rust 1.11.0. You can get an iterator from your array/slice/ Vec and then use sum : fn main() { let a = [1, ...
確定! 回上一頁