Skip to main content

In computer programming, an iterator is an object that enables a programmer to traverse a container.

Iteration, often referred to as looping or batch processing, means to repeat a process over and over with some degree of automation. Iteration is very important because automating repetitive tasks reduces the time and effort required to perform the tasks.

With iteration a process can be executed over and over using different settings or data in each iteration.