Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (6)
As of 2016-08-30 03:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The best thing I ever won in a lottery was:















    Results (410 votes). Check out past polls.