I have a map like {:a "A" :b "B"} and want to convert its keys to strings, e.g. {"a" "A" "b" "B"}.
I have this function, which works:
(defn keyword-keys->strs [m]
(zipmap
(map name (keys m))
(map second (vec m))))
But is there a more idiomatic or purpose-built way to do it?
Thanks!
(map second (vec m)->(vals m)(reduce-kv (fn [acc k v] (assoc acc (str k) v)) {} data)