Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Derangements iterator

by jdporter (Paladin)
on Dec 29, 2005 at 18:59 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://519827]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (3)
As of 2024-04-19 17:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found