Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Derangements iterator

by jdporter (Canon)
on Dec 29, 2005 at 18:59 UTC ( #519827=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub _derange
    {
    ...
        _derange( $cb,
            [ map { my $x = $_; [ grep { $_ ne $x } @_ ] } @_ ] );
    }
    
  2. or download this
    my @x = ( 1 .. 4, 4 );
    derange { print "@x[@_]\n" } 0 .. $#x;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://519827]
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: (3)
As of 2016-06-27 00:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (333 votes). Check out past polls.