Oct. 9, 2021
9:51 p.m.
Deleting is quite error prone, but appending during iteration is very useful in implementing an iterative form of recursive algorithms. It effectively gives a FIFO queue which remembers all items after you're done. In general the behaviour of a list iterator can be understood completely if you explain that it simply remembers the current index.