On Tuesday, January 28, 2014 1:17:58 AM UTC-6, Jan Herich wrote:
>
> How about doseq <http://clojuredocs.org/clojure_core/clojure.core/doseq>? 
>

doseq can do the same work, and can do more, but it requires one to specify 
variable names to be used in each application of the function.  For some 
purposes a function like mapc seems clearer and more natural (according to 
personal taste, at least).  I like mapc for the same reason that I like map.

(In the example I gave, I used an inline function definition using # and %; 
in such examples doseq may be better, but that's only one kind of case.)

-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to