[ad_1]
I have an array with values, some values are missing:
Array = [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 22, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56]
I want the result to look like this:
[2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
[12, 13, 14, 15, 16, 17, 18, 19, 22, 24]
[25, 26, 27, 28, 29, 30, 31, 32, 33, 34]
[35, 36, 37, 38, 39, 40, 41, 42, 43, 44]
[47, 48, 49, 50, 51, 52, 53, 54, 55, 56]
Where the last index in the first array becomes the first index in the next array and so on. Any help on this would be highly appreciated.
[ad_2]