From: Curt Sampson Date: 2008-02-07T09:55:29+09:00 Subject: Re: Array Practice On 2008-02-07 08:20 +0900 (Thu), Adam Akhtar wrote: > [1,2,3,1,2,2,4,3,2,1] > and then grouping them together and putting them in subarrays within an > array like this > [ [1,1,1], [2,2,2,2] , [3,3] ,[4] ] The Array#assoc method is your friend here. If you have questions or comments on this, please Cc: me directly as well as sending to the list. (This should happen automatically if the list doesn't wipe out my reply-to header.) cjs -- Curt Sampson +81 90 7737 2974 Mobile sites and software consulting: http://www.starling-software.com