Iterator Pattern
An iterator is a behavioral design pattern that allows you to traverse elements of a collection without revealing its underlying representation.
An iterator is a behavioral design pattern that allows you to traverse elements of a collection without revealing its underlying representation.