From: Steve Wilhelm Date: 2010-03-19T11:36:00+09:00 Subject: Re: Grouping elements of an array Josh Cheek wrote: > On Thu, Mar 18, 2010 at 4:50 PM, Steve Wilhelm > wrote: > >> A 0 >> >> Any help on how to do this in the "Ruby Way" would be appreciated. >> >> - Steve W. >> -- >> Posted via http://www.ruby-forum.com/. >> >> > What about > A 0 > B 20 > C 40 > > Does that become > [[A,B],[B,C]] or [[A,B,C]] or something else? The congruence class here > is > unclear. It would be [[A,B,C]]. - Steve W. -- Posted via http://www.ruby-forum.com/.