Skip to content

Instantly share code, notes, and snippets.

@apmaricich
Last active March 21, 2016 14:08
Show Gist options
  • Select an option

  • Save apmaricich/f2dd46b89c9813ed5846 to your computer and use it in GitHub Desktop.

Select an option

Save apmaricich/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