To iterate is human  Iterator versus the Enumeration Method
Build a business case: developing custom apps  In the previous
article, I made the following observation:   And a reader made
the following comment:  A fourth option, which is in the general
case superior to all three of your options, is the internal
iterator. It delegates management of the iteration to the
collection, rather than adding repetitive boilerplate to your
functional code.  In this particular case, the design pattern
mentioned is also known as the Enumeration Method pattern. The
use of this pattern was mentioned in the article, along with a
link to a corresponding article, although it appears that it was
overlooked.  However, the posted comment touches on a whole
topic area that deserves more attention than there was either
space or topic focus for in the previous article. In fact, it
deserves at least a whole article!  In essence, where Iterator
is normally characterised by the introduction of an additional
kind of object that performs