iterator
🇺🇸
/ɪtə'reɪtə/
🇬🇧
/ɪtə'reɪtə/
A person or thing that goes through a process or a set of items one by one.
The researcher was an iterator, carefully examining each sample.
In programming, an object that lets a program access the elements of a collection one by one, without needing to know the collection's structure.
The iterator pattern allows for accessing elements in a list without revealing the list's internal structure.