Skip to content

Instantly share code, notes, and snippets.

@zaiste
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zaiste/19f9c4c0cb84bd9e8819 to your computer and use it in GitHub Desktop.
Save zaiste/19f9c4c0cb84bd9e8819 to your computer and use it in GitHub Desktop.
;; works
(let [{a :a b :b} {:a 1 :b 2}]
a)
;; doesn't work
(let [(zipmap (map #(symbol (name %)) [:a :b]) [:a :b])
{:a 1 :b 2}]
a)
;; doesn't work
(let [{:keys (vec (map #(symbol (name %)) [:a :b]))}
{:a 1 :b 2}]
a)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment