Beefy Boxes and Bandwidth Generously Provided by pair Networks BBQ
Perl-Sensitive Sunglasses
 
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 exploiting the Monastery: (15)
As of 2014-04-18 16:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (470 votes), past polls