Merge List with same numbers at beginning?

Hi. I do need to create a list where all the elements that begin with the same numbers to be merged together and take only the first name that follows after the number from beginning. I think needs to use sets but I am not familiar with them and I don’t fully understand how they do work. Any help will be appreciated.

merge_same_numbers_in_list.gh (7.4 KB)


merge_same_numbers_in_list_re.gh (14.3 KB)

2 Likes

Thank you very much, this is what I needed.