2011/6/21 Adam Prescott <adam / aprescott.com>: > On Tue, Jun 21, 2011 at 3:34 PM, Iñaki Baz Castillo <ibc / aliax.net> wrote: >> Is there any efficiente way? (I don't want the hast to be converted to >> an array and the to a hash again). >> > > I guess you didn't mind doing then? :) Well, I wanted to avoid doing more stuff in Ruby, as using Array#map/inject to generate a new Hash and so. But maybe using Hash[] method directly is faster. -- Iñaki Baz Castillo <ibc / aliax.net>