Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^5: Check if at least one element of array is bigger than X

by ikegami (Patriarch)
on Apr 08, 2010 at 02:01 UTC ( [id://833426]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Check if at least one element of array is bigger than X
in thread Check if at least one element of array is bigger than X

The entire list is visited with the any and the first solutions too (although the check function is only called until a match is found). for (@a) is saved due to the an optimisation that prevents the flattening of the list if it consists of just an array.

Update: Added reference to newly added first solution.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2024-04-19 06:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found