ClojureDocs

Nav

Namespaces

every-pred

clojure.core

Available since 1.3 (source)
  • (every-pred p)
  • (every-pred p1 p2)
  • (every-pred p1 p2 p3)
  • (every-pred p1 p2 p3 & ps)
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.