iterator

/aɪˈteɪtər/

Definitions

1. noun

A device or mechanism for enabling the repeated use of a process without repeating its setup, especially a program that generates a series of values or objects

“The compiler uses an iterator to traverse the array of tokens.”

2. verb

To use or traverse an iterable or a sequence of values one at a time

“We can iterate through the list using a loop or a for-each statement.”

3. noun

A person or device that moves through a particular space or performs a repetitive action

“The iterator of the factory floor inspected each workstation regularly.”

Synonyms

  • enumerator
  • scanner

Antonyms

  • terminator