Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: An exploration of higher-level-language approaches to the "First all-zero row in an NxN matrix" problem (goto Considered Harmful)

by moritz (Cardinal)
on Sep 24, 2011 at 20:18 UTC ( [id://927681]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @array =
        [ qw/ 1 1 1 1 1 / ],
    ...
    ;
    
    say @array.pairs.first({.value.all == 0 }).key;
    
  2. or download this
    say @array.pairs.first(*.value.none).key;
    
  3. or download this
    say @array.pairs.first({ 0 == [+] .value.list}).key;
    
  4. or download this
    say @array.pairs.first({ not [||] .value.list}).key;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (8)
As of 2024-04-16 09:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found