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