Last active
March 21, 2016 14:08
-
-
Save w33tmaricich/f2dd46b89c9813ed5846 to your computer and use it in GitHub Desktop.
clj: converts a map with strings as keys into a map with keywords
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn stringmap->keymap | |
"Converts a map with strings as keys into a map with keywords" | |
[m] | |
(into {} | |
(for [[k v] m] | |
[(keyword k) v]))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment