From: Dr Nic Date: 2006-07-30T03:41:03+09:00 Subject: Re: how to split an array in sub arrays of the same length Paolo Bacchilega wrote: > Is there a way to split an array in sub arrays of the same length, that > is : > > [ 1, 2, 3, 4, 5, 6, 7, 8 ].unknown_function(3) > > that returns: > > [ [1, 2, 3], [4, 5, 6], [7, 8] ] Amuse yourself here: http://redhanded.hobix.com/bits/matchingIntoMultipleAssignment.html -- Posted via http://www.ruby-forum.com/.