Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a = (big, bottle)
- Hash[a.each.map{|value|[value, value]}]
- => {'big' => 'big', 'bottle' => 'bottle'}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement