Iterator: Introduction

Get a brief introduction to the Iterator design pattern.

The Iterator design pattern allows a developer to encapsulate a collection of any complexity inside an object with a very simple interface. The consumers of this interface can iterate through each individual item of this collection without knowing any of ...