result of storing 4 at index 1 of stack [ 0, [ 1, [ 2, [ ] ] ] ] = [ 0, [ 4, [ 2, [ ] ] ] ]

View as a table | Try proving it

Start from the conclusion and work back up the proof. Click the arrow to show the parents.