reverse lookup in a map

clojure, dictionary, key-value

Solution

Try

(some #(if (= (val %) your-val) (key %)) your-map) 

Problem

I have to extract a key from a map using a value. Is there a way to do this other than implementing reverse lookup myself?

Original source