A Gang of Four behavioral design pattern that provides a way to access the elements of a collection sequentially without exposing the collection's own underlying representation, letting the same traversal code work across different collection types.
Facts
Core PrincipleProvides a way to access the elements of a container sequentially without exposing its underlying representation, decoupling traversal algorithms from the container itself. 2 Connections
Associated With
Erich Gamma, Pioneers Erich Gamma co-authored the 1994 Design Patterns book that named and catalogued the Iterator pattern among the original 23.
In Field
Sources
1. Wikipedia: Design Patterns (book)
Wikimedia FoundationLead section, first sentenceQuote, Lead section, first sentence
Design Patterns: Elements of Reusable Object-Oriented Software (1994) is a software engineering book describing software design patterns.
View the Source 2. Wikipedia: Iterator Pattern
Wikimedia FoundationLead section, first paragraphQuote, Lead section, first paragraph
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
View the Source Reader Challenges (0)
No disputes yet. Spotted an error or a better source? Open the first one.
Sign in to dispute this or suggest a correction.