Last active
December 30, 2015 23:59
-
-
Save frankhale/7904625 to your computer and use it in GitHub Desktop.
More map fun!
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
(def data (atom [])) | |
;(def data1 [{:abc "123"}{:bcd "234"}]) | |
;swap! data conj {:foo "bar"}) | |
;(swap! data into data1) | |
(def more-data ["foo" "bar" "hello" "world"]) | |
(swap! data into (map #(conj {} {:name %}) more-data)) | |
(swap! data conj {:hello "1234"}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment