Given a list, test if a certain logical condition (i.e. predicate) holds for any items of the list.
groovy [2,3,4].any{it > 3}
[2,3,4].any{it > 3}
Submit a new solution for
groovy
There are 12 other solutions in
additional languages (
clojure,
cpp,
erlang,
fantom ...)