Tree A: consists of multiple branches with multiple items.
Tree B: consists of the same ‘branch Names’ all containing 1 value.
Challenge;
I would like to delete 1/or more items counted from the back.
So if there is a 1 --> delete the last item in that branch
If there is a 2 --> delete the last 2 items in that branch
In a generic way.
You can also set those index numbers to negative and it should count back from the last index. So, -1 is the last item in the list and -2 is the second to last item.
It appears that my solution does not work with the split component. However, if you use list length and subtract the index numbers, you can use those as the index split the list and remove them.