Note: This content was generated by AI. I am working on this page to provide personal content of better quality.

Iterator

Nota bene : This content was generated by AI. I am working on this page to provide personal content of better quality.

Traverse a collection without exposing its internal representation.

Intent

Uniform traversal across different structures.

Python example

Chargement…

Console output

2 3 4 5

When to use

Hide complex structures behind a simple traversal API.