Lists - Find branches with unique/similar combinations

Hi,

I’m trying to find unique and similar branches between the 2 lists. Each branch has 5 values and some of these combinations are similar/repeated. Any suggestion on how I can do it through Sets?
My goal is to filter out the total amount of combinations excluding the ones repeated.
Thank you in advance.

Lists_Unique_Repeated branches.gh (5.1 KB)

Hi,

Comparing lists is difficult. Comparing strings of text is easy. Use Text Join to combine your values and use a random separator like a letter or a symbol.
Then you can use Create Set.

If I recall correctly that’s what I did here

Hi @magicteddy,

Thanks for your tips. Based on your comment, this is how I solve it. Does it seem right to you?

1 Like

Exactly !

In addition, if the order of numbers does not matter (so you want for instance 100-200-300 to be the same as 300-100-200 or 200-100-300…), use Sort List to sort numbers by ascending order before the text join.

I see. In this case, actually, the order matter since it means the tile size and position. Thanks for your help! It was great :ok_hand: