Guest User

Untitled

a guest
Jul 17th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. fn main() {
  2. let x = vec![0, 1, 2, 3];
  3. let sum: i32 = x.into_iter()
  4. .map(|item| item + 10)
  5. .filter(|item| item % 2 == 0)
  6. .sum();
  7. }
Add Comment
Please, Sign In to add comment