What it is good for

The iterator design pattern is used all the time in software engineering. It is probably one of the most often used design patterns and everyone knows about it. It is used with almost all collections one can think of, it is pretty simple, and allows us to hide the details of how a composite object is internally organized.

Get Scala Design Patterns - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.