Hello community
Is there a way to split a list into sublist based on the values from another list?
I have a list of points and a list of the lentgh of the lists.
In the case seen below i have 13 points (A,B,C,D,E,F,G,J,K,L,M)
And a list of lenghts (5,4,4)
I then want:
-
(A,B,C,D,E)
-
(F,G,J)
-
(K,L,M)
Any ideas on how to do this?