From: "Peña, Botp" Date: 2008-10-09T18:35:11+09:00 Subject: Re: Filling a hash from an enumerable From: Pete Hodgson [mailto:phodgson@lyris.com] # Peña, Botp wrote: # >> people_array.group_by{ |p| p.name } # > => {"bob"=>[#], "dave"=>[#], "jane"=>[#]} # > # Thanks, but that's not quite what I wanted. It creates a hash whose # values are lonely arrays,... lonely indeed, but consider the case when you have dup names kind regards -botp