Created
September 16, 2015 04:12
-
-
Save acdimalev/ec63daa72a040d3af211 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
let str_vec: Vec<&str> = vec!["foo", "bar", "baz"]; | |
let string_vec: Vec<String> = str_vec.iter().map(|s| s.to_string()).collect(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment