I have a large array, for example. aa=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]
I have another array that contains index values based on how large the array needs to be split. egcc=[10,16]
I want aa array to be tagged in new arrays
dd [] = [0 to cc [0] index]
ee [] = [from cc [0] index to cc [next value] index]
EXAMPLE
dd[] = [1,2,3,4,5,6,7,8,9,10]
ee[] = [11,12,13,14,15,16]
and so on, until cc[]it has indexes
I could not understand the logic if anyone could help me.