fr paulo: # 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] ] irb(main):021:0> x => [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] irb(main):022:0> y=[] => [] irb(main):023:0> x.each_slice(3){|s| y << s} => nil irb(main):024:0> y => [[0, 1, 2], [3, 4, 5], [6, 7, 8], [9]] kind regards -botp