Duplicate specific Tree branch incl branch structure

Hi,
Challenge:
There is a tree B, with 3 branches.
There is a tree A, containing numbers which represent the number of times that specific branch has to be duplicated.
I do know there is the duplicate command, however, when I do this all the Items are copied within the branch. Instead adding the entire branch.
List A List B
2 x {0;0}
1 x {1;0}
1 x {2;0}

It should be very simple and generic, but I cant find it.

2020-04-11 Duplicate specific list branch.gh (9.5 KB)

Any suggestions?
thank you in advance.


Tree.gh (8.3 KB)

1 Like

Perfect, thanks! :slight_smile: