Splitting an array

Hi All, 

Need some help with writing a logic.

I have an integer array {1,2,3,4,5,6,7,8,9,10,11,12}.

I want an output as three arrays {1,2,3,4,5},  {6,7,8,9,10},  {11,12}

Any function or quick work around to split an array by grouping first five elements in an array, next five elements in array and so on

TIA

Arun

 Discussion posts and replies are publicly visible