In this chapter, we studied iterators, a programming construct very near to a mathematical description of iterative methods. You saw the keyword yield and met finite and infinite iterators.
We showed that an iterator can be exhausted. More special aspects such as iterator comprehension and recursive iterators were introduced and demonstrated with the help of examples.