From: Max Williams Date: 2008-09-09T17:54:49+09:00 Subject: Re: Is this a sensible implementation for Array#group_by ? Adam Shelley wrote > I think the Facets library already has a similar method. Erik Veenstra wrote: > Indeed, Facets does have an Enumerable#group_by. And it has an > Enumerable#cluster_by as well. And the latter is the one you're > looking for, because you want an Array and not a Hash. Facets - investigates again... now that is *very* good indeed. Wow. I had a feeling this would exist already in a better form :) thanks a lot everyone. -- Posted via http://www.ruby-forum.com/.