Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^8: Perl6 Contest: Test your Skills

by blokhead (Monsignor)
on May 23, 2005 at 20:29 UTC ( [id://459702]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    @pick      @arr[@pick]
    
    ...
    1 2 4  ==>  . x x . x
    1 3 4  ==>  . x . x x
    2 3 4  ==>  . . x x x
    
  2. or download this
    return @$arr[ @pick = ( 0 .. $num - 1 ) ]
        unless @pick;
    
  3. or download this
    my $i = $#pick;
    $i-- or return
        while ( $pick[$i]++ == @$arr - $num + $i );
    
  4. or download this
    @pick[$i .. $#pick] = $pick[$i] .. $#$arr;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://459702]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2024-04-19 08:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found