Vijay Ramesh

Activity

Reported issues: 0

10/30/2012

08:27 AM Ruby trunk Feature #7241: Enumerable#to_h proposal
Or
1.9.3-p0 :001 > Hash[ [1,2,3,4,5].map{|el| [el, el*2]} ]
=> {1=>2, 2=>4, 3=>6, 4=>8, 5=>10}

Also available in: Atom