How to split a list into parts of given length

Hello!
Please allow me a question, since I’m searching for too long already:
Got a list of arbitrary length, and want to split it into parts of given length.
{0,1,2,3,4,5,6,7,8,9,10,11,12}
sublist length = 3:
{0,1,2}, {3,4,5}, {6,7,8}, {9,10,11}, {12}
Which component do I need?

Thanks a lot!!
Best regards
Eugen

Partition List

Thank you very much!
Another question came up (sorry) - what if the parts should overlap?

{0,1,2,3,4,5,6,7,8,9,10,11,12}
sublist length = 3
{0,1,2}, {2,3,4}, {4,5,6}, {6,7,8}, {8,9,10}, {10,11,12}

Thanks!!

Wow, thank you so much!!

Check this as well.


Partition_reV2.gh (10.4 KB)

Thanks again! Very good learning examples…