I want to split a list that looks something like this:
list = [5, a, b, c, d, e, 2, a, b, 4, a ,b ,c ,d , ...]
into this:
list = [ [5, a, b, c, d, e], [2, a, b] , [4, a ,b ,c ,d] ...]
The first element/number is variable, so no pattern to split it in even chunks. The chunks size or length should be based on that first element of the chunk. Also the alphabetic letters are just placeholders to make the example more readable, in reality the alphabetic letters are floats and numbers.
So the big list really looks something like this:
list = [5, 7, 3.2, 3.1, 4.6, 3, 2, 5.1, 7.1, 4, 5.12 ,3.4 ,4.8 ,12.1 , ...]