Map function in Rust ... The following examples show how the map function is used. ... let result = vector.iter().map(|x| x * 2).collect::<Vec<i32>>();.
確定! 回上一頁