in reply to Re^3: An iterator for (not "iterating") a recursive data structure.
in thread An iterator for (not "iterating") a recursive data structure.

> Not if you wish to have the option of resuming the iteration;

That's why I said

> > Thats why Perl6 introduces gather/take and Python has "generators" with yield constructs.

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

  • Comment on Re^4: An iterator for (not "iterating") a recursive data structure.