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

Are you you talking about iterators that return a possibly empty list of items? Just have it return an array reference!

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

Replies are listed 'Best First'.
Re^8: An iterator for (not "iterating") a recursive data structure.
by LanX (Saint) on Jul 09, 2019 at 21:09 UTC
    Lol ...

    See first bullet point.

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

      My point still stands: The other two solutions are crazy!