Skip to content
iterator
EntityQ1326388· pop 26· linked from 83 articles

In computer programming, an iterator is an object that progressively provides access to each item of a collection, in order.

Wikidata facts

Show 2 more facts
Commons category
Iterator pattern
Sources (2)

via Wikidata · CC0

~35 min read

Article

23 sections
Contents
  • Pattern
  • Generator
  • Internal iterator
  • Implicit iterator
  • Stream
  • Contrast with indexing
  • Classification
  • Categories
  • Types
  • In different programming languages
  • .NET
  • C
  • C++
  • Java
  • Scala
  • MATLAB
  • PHP
  • Raku
  • Ruby
  • Rust
  • See also
  • References
  • External links

In computer programming, an iterator is an object that progressively provides access to each item of a collection, in order.

A collection may provide multiple iterators via its interface that provide items in different orders, such as forwards and backwards.

Gallery (4)

Connections

Categories