some

functionsince v0.0-927 clojure.core/someEdit
(some pred coll)

Details:

Returns the first logical true value of (pred x) for any x in coll, else nil.

A common idiom is to use a set as pred, for example this will return :fred if :fred is in the sequence, otherwise nil: (some #{:fred} coll)


See Also:


Source docstring:
Returns the first logical true value of (pred x) for any x in coll,
else nil.  One common idiom is to use a set as pred, for example
this will return :fred if :fred is in the sequence, otherwise nil:
(some #{:fred} coll)
Source code @ clojurescript:src/main/cljs/cljs/core.cljs
(defn some
  [pred coll]
  (when-let [s (seq coll)]
    (or (pred (first s)) (recur pred (next s)))))