This is the hoary old problem of iterating and deleting from a collection.
Erel may or may not consider this a bug!
Intuitively I expect the following to work on a Map but it errors with a NoSuchElementException.
I assume because B4A Map is not a pure Map but has some internal indexing code...