Skip to content

clojure.core/some-fn

View this page on ClojureDocs

Type: function Added: Clojure 1.3 Examples: 4 Runnable: 2
([p] [p1 p2] [p1 p2 p3] [p1 p2 p3 & ps])

Takes a set of predicates and returns a function f that returns the first logical true value returned by one of its composing predicates against any of its arguments, else it returns logical false. Note that f is short-circuiting in that it will stop execution on the first argument that triggers a logical true result against the original predicates.

Examples

by replore on
by uvtc on
by ryo on . May have evaluation errors.
by bkovitz on . May have evaluation errors.

See also


Content from the matching ClojureDocs page, with authors credited on each contribution.