Skip to content

Glossary: Software Design Patterns

Iterator

Also written: iterators

An object that steps through a collection one item at a time without showing how it's stored. Every `for` loop uses one.

Where the book teaches it

Related terms

Generator