1.2.0 permalink Arrow_down_16x16

find-first

swank.util

  • (find-first coll)
  • (find-first pred coll)
Returns the first entry in a coll matches a given predicate.

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source swank/util.clj:12 top

(defn find-first
  "Returns the first entry in a coll matches a given predicate."
  ([coll] (find-first identity coll))
  ([pred coll]
     (first (filter pred coll))))
Vars in swank.util/find-first: defn filter first identity
Used in 0 other vars

Comments top

No comments for find-first. Log in to add a comment.