Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fn main() {
- let v: Vec<_> = vec![1, 2, 3]
- .into_iter()
- .map(Option::Some)
- .collect();
- println!("{:?}", v);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement