Duplicate item by index and re-insert in tree

Hi,

How do I extract a number of items from one tree, divide these specific items by two and then add these two divided items back to the list where they came from?
Or in other words: how do I insert two items at the same position in the list where there used to be one?
Alternatively: how do I duplicate data at specific indices and them by two?

Divide by two and reinsert in tree.gh (23.5 KB)

This is one way to duplicate items at a specific index:

Duplicate item at index.gh (21.8 KB)

The solution ended up being way simpler than I expected it to. :sweat_smile:

Manipulate and Duplicate item at index.gh (24.5 KB)