Partition list based on other list values

Hi all.

I do have a list of parts from which I do need to partition-it based on the values from another list and I can’t find a proper way to do this. What components I do need to use to be able to achieve the desired result? The sub-list can have more than two values (in this case only 1&2).

Try this out

Split_list Test1.gh (173.4 KB)

not sure I understand, can you elaborate a bit more on the task?

Yes, please see my previous post, I uploaded new files.

1 Like

Try this out

Split_list_more v2.gh (20.7 KB)

Thank you for your effort but I do need to partition the list, not to create two or three different lists. And I do need a solution that works regardless of how many numbers are on the J# list.

So in this case, for example the {4;0} needs to became {4;0}{4;1}{4;2} if in the J# list are three values or {4;0}{4;1} if in the J# list are only two values.

Hopefully now it is more clear what I do need to achieve.

This should do it ?

1 Like

Thank you. This is what I was looking for.