7 - Iterators and the Generic for

In this chapter, we cover how to write iterators for the generic for. We start with simple iterators, then we learn how to use all the power of the generic for to write more efficient iterators.