API documentation for the Rust `Iterator` trait in crate `std`. ... let a = [1, 2, 3]; let doubled: Vec<i32> = a.iter() .map(|&x| x * 2) .collect(); ...
確定! 回上一頁