Subject: how to split an array in sub arrays of the same length
From: Paolo Bacchilega <paolo.bacchilega libero.it>
Date: Thu, 20 Jul 2006 15:55:10 +0900
Hi,
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] ]
thanks in advance.