Created
February 10, 2019 23:40
-
-
Save konchunas/387fb08e1129d6b88295fa5c8a0e0888 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fn main() { | |
let mut numbers = vec![1, 5, 10]; | |
let multiplied = numbers.iter().map(|num| num * 3).collect::<Vec<_>>(); | |
println!("{:?} {:?} ", "result is", multiplied); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment