Skip to content

Instantly share code, notes, and snippets.

@frankhale
Last active December 30, 2015 23:59
Show Gist options
  • Save frankhale/7904625 to your computer and use it in GitHub Desktop.
Save frankhale/7904625 to your computer and use it in GitHub Desktop.
More map fun!
(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