How to remove duplicate elements in a tree?


I know how to do this with a list, but I can’t with a tree, please help me.
del .gh (8.5 KB)

Assuming every branch duplicate always starts with the same first value…


duplicate branch.gh (11.4 KB)

Thank you very much for an interesting solution

you can also Member Index that, still assuming the filtering is based just on the very first item of each branch:

del_inno.gh (11.8 KB)

Thanks for your help