From: Wes Bailey Date: 2010-06-12T02:44:15+09:00 Subject: Re: Split an array of object by first letter ----- "Joel VanderWerf" wrote: > Wes Bailey wrote: > > Anyone remember %w or do you all love quotes so much :P > > %w/:-/ > > (Actually, it's finger memory from using non-ruby languages.) Finger memory - Ha that is a good one that I have never heard before. > > > Since the poster didn't specify whether they were on ruby 1.8 or > 1.9: > > #group_by is available in 1.8.7 One can never pass up an opportunity to use inject (j/k)! Seriously the OP might not be on 1.8.7 yet so I threw it out there.