Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: Recursively-generated Iterators

by Roy Johnson (Monsignor)
on May 23, 2005 at 15:57 UTC ( [id://459604]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub hanoi {
        my ($disks, $start, $end, $via) = @_;
    ...
                 hanoi($disks-1, $via, $end, $start)
               );
    }
    
  2. or download this
    sub iter_hanoi {
        my ($disks, $start, $end, $via) = @_;
    ...
            return $rval;
        }
    }
    
  3. or download this
    sub iter_choose_n {
        my $n = pop;
    ...
            return $rval;
        }
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2024-04-19 11:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found