On Fri, Sep 9, 2011 at 6:05 PM, Chris White <cwprogram / live.com> 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.