Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Question about recursively generated iterators

by ikegami (Patriarch)
on Sep 21, 2007 at 15:52 UTC ( [id://640390]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub visit_preorder(&$) {
       my ($visitor, $node) = @_;
    ...
       &visit_preorder($visitor, $l) if defined $l;
       &visit_preorder($visitor, $r) if defined $r;
    }
    
  2. or download this
    sub visit_preorder {
       my ($node) = @_;
    ...
          sub { return visit_preorder($r) if defined $r; return; },
       );
    }
    
  3. or download this
    sub visit_preorder {
       my ($node) = @_;
    ...
          defined($r) ? sub { return visit_preorder($r); } : (),
       );
    }
    
  4. or download this
    sub make_iter {
       my $f = shift @_;
    ...
          return;
       };
    }
    
  5. or download this
    {
       #      a
    ...
       }
       print("\n");
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-03-19 03:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found