Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Derangements iterator (handles duplicate values)

by Roy Johnson (Monsignor)
on Jan 03, 2006 at 19:34 UTC ( #520703=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    a b b a
    
  2. or download this
    b a a b
    
  3. or download this
    use strict;
    use warnings;
    ...
    
    #print "\nShould be:\n";
    #print "@$_\n" for sort {"@$a" cmp "@$b"} derange(@ARGV);
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://520703]
help
Chatterbox?
and one hand claps...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2016-12-08 07:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (135 votes). Check out past polls.