clojure.core/every-pred¶
Takes a set of predicates and returns a function f that returns true if all of its composing predicates return a logical true value against all of its arguments, else it returns false. Note that f is short-circuiting in that it will stop execution on the first argument that triggers a logical false result against the original predicates.
Examples¶
Note by harold¶
Careful--every predicate with no arguments is considered true:
user> ((every-pred (constantly false))) true user> ((every-pred (constantly false)) 1) false
See also¶
Content from the matching ClojureDocs page, with authors credited on each contribution.