Matching the grasshopper branch index

I have a tree whereby the data goes {0}, {1}…{x} where x is any old number, like 15
I have another tree where the data is organized {14}, {25}, {65}, etc and has also x number of branches. I wanna change the branch numbering in the first tree to match that of the second, but can’t cuz each branch in tree 1 has 4 elements while tree 2 has only 2, i appended extra elements and now I’m stuck ><


you can use Replace Paths .

hi i tried that just now. i have found a temporary workaround, but the gh gave me feedback that rule notation doesnt allow use of negative numbers.