Skip to content

Instantly share code, notes, and snippets.

@mwmitchell
Created July 2, 2013 16:58
Show Gist options
  • Save mwmitchell/5911075 to your computer and use it in GitHub Desktop.
Save mwmitchell/5911075 to your computer and use it in GitHub Desktop.
(defn find-by-kv [coll k v]
(some #(and (= v (k %)) %) coll))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment