Iterator
Intent: Access elements of a collection sequentially without exposing its representation.
When to use it
- Uniform traversal
- Lazy sequences
Example
Paging through search results.
Intent: Access elements of a collection sequentially without exposing its representation.
Paging through search results.