Clojure equivalent to Python’s “any” and “all” functions?
(every? f data) [docs] is the same as all(f(x) for x in data). (some f data) [docs] is like any(f(x) for x in data) except that it returns the value of f(x) (which must be truthy), instead of just true. If you want the exact same behaviour as in Python, you can use the identity … Read more