Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

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

by ikegami (Pope)
on Jul 09, 2019 at 18:38 UTC ( #11102611=note: print w/replies, xml ) Need Help??


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 (Archbishop) 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!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11102611]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2020-06-06 08:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you really want to know if there is extraterrestrial life?



    Results (41 votes). Check out past polls.

    Notices?