Back to Developer Roadmap

Iterators

src/data/roadmaps/scala/content/[email protected]

4.0502 B
Original Source

Iterators

An iterator is a mechanism to access a collection's elements sequentially in a performant way. They are often used in loops. On the other hand, they are mutable, and careless use can lead to non-trivial bugs.

Visit the following resources to learn more: