Combine 2 Trees with same starting branch name

Hi Question;

There is List A: Containing: branches;
{1}
{2}
{3}
{4}
{5}

There is list B: Containing branches with 1 more branch layer;
{1;0}
{2;0}
{3;0}
{4;0}
{5;0}
{5;1}

Question:
I would like to paste all the branches of list A into List B. Whereby The intem of List A are copied to all branches in list B which have the same 1st branch name;
List A List B
{1} + {1;0}
{2} + {2;0}
{4} + {4;0}
{5} + {5;0}
{5} + { 5;1}

Using Path mapper list A and merging the 2 lists will not do the trick because then, Item {5} + {5;1} are not combined.
probably something with duplicate lists but I cant find it.
2020-10-09 Combine lists - with same starting branch name.gh (10.6 KB)

Any suggestions?

Thanks :slight_smile:


2020-10-09 Combine lists - with same starting branch name_re.gh (13.8 KB)