Guest User

Untitled

a guest
Jul 17th, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.08 KB | None | 0 0
  1. %w{ a b b a c }.
  2. inject(Hash::new(0)){ |h,e| h.update( e => h[e] + 1)}.
  3. to_a
Add Comment
Please, Sign In to add comment