From: Adam Prescott Date: 2011-09-10T02:15:57+09:00 Subject: Re: Creating a hash from two arrays On Fri, Sep 9, 2011 at 6:05 PM, Chris White wrote: > I will suggest something different based on what you wish to do. This uses inject: > I wouldn't use inject ! You aren't really reducing something down to one element, you're converting a mapping which exists based on an index into an actual hash. Aside from that, the group_by is much easier to comprehend quickly than the inject approach in your second example.