Convert a list to branches in a certain way

Hello,

let’s say I have the following list: {0, 1, 2, 3, 4, 5}
How to divide it in following branches: {0, 1}{1, 2}{2, 3}{3, 4}{4, 5} ? So the first element of a branch will be the same as the last element of a previous branch? I think it should be possible to do with Path Mapper, but I don’t know how exactly…

Thank you in advance!


List_rev1.gh (8.7 KB)

1 Like

3 Likes


sublist_2021Dec29b.gh (13.3 KB)