Learn Design Patterns (read all 11 entries…)
Iterator Extra Feature 2 years ago

One of the extra advantages of the Iterator is that, besides encapsulating the data structure and only exposing the iteration part, is that it allows you to create more than one iterator on the same aggregate, ie, create filters on the data.



Comments:

Stanley Kubasek has gotten 1 cheer on this entry.

 

I want to: