Word
iterator
Phoneticsit·er·a·tor
Definition
n. an object in computer programming that lets you go through a list of items one by one. It keeps track of where you are in the list so you can get the next item easily.
n. an object or interface that enables sequential access to the elements of a collection without exposing its underlying representation. It maintains an internal state to track the current position during traversal.
Examples
“The program uses an iterator to check every name in the list.”
“When the loop starts, the iterator moves through the array and performs a calculation on each individual number.”
“By implementing a custom iterator, the developer allowed the application to stream large datasets from the database without loading the entire collection into memory at once.”
Examples
simple
“The program uses an iterator to check every name in the list.”
contextual
“When the loop starts, the iterator moves through the array and performs a calculation on each individual number.”
complex
“By implementing a custom iterator, the developer allowed the application to stream large datasets from the database without loading the entire collection into memory at once.”
Usage
Commonly used with 'over' or 'through' to describe the action of visiting elements in a collection.
Domain
Scan code
englishreference.com/q/iterator