On 4/28/05, Eric Mahurin <eric_mahurin / yahoo.com> wrote:
> I've read a few discussions/comparisons between enumerators
> (internal iterators) vs. cursors (external iterators).  From
> what I gather those discussions in favor of enumerators assume
> the application is a simple single pass read-only processing of
> all/some of the elements in a collection.  You do this a lot
> with a collection and I like enumerators best for doing it.
> But when you are doing something more complex, enumerators
> don't cut it.
[snip]

I have made a lib containing some external iterators, see:
http://aeditor.rubyforge.org/iterator/

download it here:
http://rubyforge.org/frs/download.php/704/iterator-0.8.zip


--
Simon Strandgaard