Guest User

Untitled

a guest
Apr 26th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.05 KB | None | 0 0
  1. a = [1,2,3,4]
  2. a.inject([]) {|acc,n| acc << n+n}
Add Comment
Please, Sign In to add comment