daily pastebin goal
23%
SHARE
TWEET

Untitled

a guest Feb 16th, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top