Splits the given array into sub-arrays each with the specified size (except possibly the last array, which may be shorter if the given array is not evenly divisible by the group size).
The array to split.
The size of each resulting sub-array.
Splits the given array into sub-arrays each with the specified size (except possibly the last array, which may be shorter if the given array is not evenly divisible by the group size).