iterator
- noun
- /ˈɪtəˌreɪtər/
- In programming, an iterator allows you to systematically access each element in a collection one at a time.
Examples
-
So the reverse method will return an object that is an iterator and that you can use just like the iterator in the reverse class.
-
The iterator method ensures that the same sequence of actions can be repeated without needing to rewrite the code.
-
The teacher introduced an iterator to help the students understand the concept of repeating a process in programming.
Synonyms
A person who does the same thing again and again
A person who says poems or short parts of books from memory
A person who repeats words from someone else, often in speech or writing
A person or thing that repeats sounds, words and ideas from others
Someone or something that repeats the same words to make them clear
How Repetitive
Surface Forms
Morphology
Etymology
Iterator comes from the Latin root iterare, which means 'to do again' and is related to iterum meaning 'again'. So an iterator is literally something that repeats an action, which fits the modern meaning of a person or thing that repeats a task.