Last active
August 29, 2015 14:02
-
-
Save zaiste/19f9c4c0cb84bd9e8819 to your computer and use it in GitHub Desktop.
This file contains 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
;; 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