Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Iterator

Official description of the Iterator pattern

Provide a way to access the elements of an aggregate object sequentially without exposing its underlying representation.


Examples of Iterator can be lists, stacks, trees, etc.
This pattern allows clients to go over elements of different collections in a similar fashion using a single iterator interface.