I can't seem to figure out the tunnelling - if that is the issue - to insert items at a given index in an array.
I've attached my example, where I initialise an array of all 0s and add some arbitrary elements at some points. The output is a different array for each element I wanted to insert. I just wanted to add them all to the same array.
Does anyone know how to do this? Any help would be greatly appreciated.