Skip to main content

every-pred

functionv1.7

cljs.core/every-pred

Available in:BBCLJCLJS
(every-pred [p] [p1 p2] [p1 p2 p3] [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.

No examples yet. Be the first to add one!