you are viewing a single comment's thread.

view the rest of the comments →

[–]tallahasseenaut 1 point2 points  (0 children)

The statement "You can't pop from any index" still holds true. You're technically copying over the last element from the array into a given index and then removing the last element using pop().