• (reverse-map m)
Reverse the keys/values of a map

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 clojure/contrib/datalog/util.clj:54 top

(defn reverse-map
  "Reverse the keys/values of a map"
  [m]
  (into {} (map (fn [[k v]] [v k]) m)))
Vars in clojure.contrib.datalog.util/reverse-map: defn fn into map
Used in 0 other vars

Comments top

No comments for reverse-map. Log in to add a comment.