iterator
Sign in to saveIn 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
- Stack Exchange tag
- stackoverflow.com/tags/iterator
Sources (2)
via Wikidata · CC0
~35 min read
Article
23 sectionsContents
- 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
program loop
Entity
PHP
Entity
anonymous function
Entity
interface
Entity
generator
Entity
stream
Entity
International Standard Book Number
Entity
Q15777
Entity
Python
Entity
Java
Entity
Q2407
Entity
computer programming
Entity
Wayback Machine
Entity
Q2370
Entity
digital object identifier
Entity
compiler
Entity
Q42478
Entity
Q161053
Entity
Lua
Entity
object-oriented programming
Entity