Given a list, test if a certain logical condition (i.e. predicate) holds for any items of the list.
erlang Result = lists:any(Pred, List).
Result = lists:any(Pred, List).
Submit a new solution for
erlang
There are 12 other solutions in
additional languages (
clojure,
cpp,
fantom,
fsharp ...)