Select consecutive items

consecutive.gh (9.2 KB)

first case.
I have a series of lines I want to select by “groups” of equals elements ,partition list made the sub groups but I want select the items in first branch the result is first item in every sub list instead of “first group”.

Second case

after to get the groups, the second group has to contain the las item from the first group so the third group has to contain the last item from the secont group and consecutive

Help

you can select the groups by using Tree Branch.

Didn’t fully understand your second question, you want to insert the last item of the first branch into the second branch and so on ?

1 Like

Like this?

consecutive_re.gh (12.7 KB)

thanks new feature to the brain

Something like this

consecutive.gh (19.6 KB)

I’ve already gave you the answer…

1 Like

I used list item instead tree branch :sweat_smile:

thank you very much!