Skip to content

Instantly share code, notes, and snippets.

@w33tmaricich
Last active March 21, 2016 14:08
Show Gist options
  • Save w33tmaricich/f2dd46b89c9813ed5846 to your computer and use it in GitHub Desktop.
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
(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