This paper introduces interruptible iterators, a language feature … [Iterators can be] awkward to implement correctly and efficiently, especially … current element. … Interruptible iterators are … coroutines in which the loop body is able … differently and have resumption semantics. … A JMatch reimplementation of the Java Collection Framework … [using interruptible iterators] shows that … also be implemented efficiently.
Google-1
Google-2
Copyright clearance needed for quotation.