Why not make it yourself? Something like this perhaps?

(defmacro doeach [f coll]
`(doseq [x# ~coll] (~f x#)))

Itis good if you name it "doeach" instead of each to imply side-effects (just like doseq)...

Hope that helps...

Jim


On 08/06/12 04:32, David Jacobs wrote:
I would love to have a version of doseq that works like map (similar to "each" in other dynamic languages). In other words, instead of (doseq [log logs] (println log)), I would say something like (each println logs).

Is there a built-in Clojure method that works like this?
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to