Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: Recursively-generated Iterators

by Roy Johnson (Monsignor)
on May 23, 2005 at 15:57 UTC ( #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
Node Status?
node history
Node Type: note [id://459604]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2015-07-28 05:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (252 votes), past polls