Guest User

Untitled

a guest
Feb 16th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. fn main() {
  2. let my_array = (0..).take(100);
  3. let mut odds = vec![];
  4. my_array.filter(|x| x % 2 != 0).for_each(|odd| odds.push(odd));
  5. println!("{:?}", odds);
  6. }
Add Comment
Please, Sign In to add comment