ClojureDocs

导航

命名空间

some-fn

clojure.core

自 1.3 起可用 (源代码)
  • (some-fn p)
  • (some-fn p1 p2)
  • (some-fn p1 p2 p3)
  • (some-fn 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.