Skip to content

Instantly share code, notes, and snippets.

@webus
Created November 17, 2012 05:59
Show Gist options
  • Save webus/4093678 to your computer and use it in GitHub Desktop.
Save webus/4093678 to your computer and use it in GitHub Desktop.
experience with doseq
(def a ["dress" "clothes"])
(map #((fn [x] {:uid 1 :name x}) %) a)
(def b (map #((fn [x] {:uid 1 :name x}) %) a))
(doseq [x b] (println x))
(doseq [x (map #((fn [x] {:uid 1 :name x}) %) a)] (println x))
(doseq [x (map #((fn [x] {:uid 1 :name x}) %) ["dress" "clothes"])] (println x))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment