Thanks...
That way is definitely better, however it did not show off (for lack of any better word) what an enumerator looks like, and perhaps when (depending on your background) are used to iterators (/enumerators).
A scenario where they can be useful is where you want to apply some sort of filter on the elements being processed - though here you would be writing your own enumerator.