Everything About ___
Live briefing

Everything about Iterator pattern

Software design pattern

In object-oriented programming, the iterator pattern is a design pattern in which an iterator is used to traverse a container and access the container's elements. The iterator pattern decouples algorithms from containers; in some cases, algorithms are necessarily container-specific and thus cannot be decoupled. Wikipedia →

đź§­ Start here: a 6-step reading path

  1. Read the overview: Iterator patternA 5-minute orientation
  2. Pick up a classic book: Stochastic processes with learning propertiesThe most-reprinted book on the subject
  3. Read the landmark paper: The essence of the Iterator patternCited 43 times
  4. Go sideways: Composite patternA closely related topic
  5. Go sideways: Abstract factory patternA closely related topic

đź“– Definitions

Noun A behavioural design pattern that uses an iterator to traverse a container and access the container's elements, thus decoupling algorithms from containers.

🗂️ The subject at a glance

  1. Overview
  2. Definition
  3. Structure
  4. Example

🏆 Landmark papers (most cited)

📚 Books worth reading

Ranked by number of editions on Open Library, a rough measure of how lasting a book is.

đź”— Related topics