index of value 2 in [ 2, [ 1, [ ] ] ] = 0

View as a table | Try proving it

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