Hi all,
I’d like to break a list into sublists of equal length. Each sublist should
- have a user-defined length, and
- start on successive elements of the parent list.
Example (if sublist length = 3):
(1 2 3 4 5) → ((1 2 3) (2 3 4) (3 4 5))
Any advice on how to achieve this would be greatly appreciated.
(I’m quite new to Open Music, so forgive me if I have used the wrong language!)