josephivie
val iterator = collection.iterator() while(iterator.hasNext()){ val item = iterator.next() if(item.shouldBeRemoved()) iterator.remove() }