julia> function bar(x)
         info("bar $x")
         x
       end
bar (generic function with 1 method)

julia> any(v->bar(v), [false, false, true, false, false])
INFO: bar false
INFO: bar false
INFO: bar true
INFO: bar false
INFO: bar false
true

Is there a reason the rest of the elements in the collection are evaluated 
after the first true is encountered?

Reply via email to