List from a list


#1

Hi everybody,

I got stuck on this very simple problem that I don’t want to end up solving in a clutter filled/ unpredictable fashion. Say I have a list of data of x amount of values. What is the most efficient way to make sublists made of 4 elements of that data until it runs out? So a list of 0…19 items ends up in 4 sub-lists in order (4 sublists of 4 items and 1 consisting of 3). (16+3=19)

Thank you


#2

List.Chop does exactly this.