If you don't need the result of the for loop (which you don't in your example) use doseq.Same syntax as "for" but not lazy and no return value (well, nil to be exact)
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clo...@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+u...@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 a topic in the Google Groups "Clojure" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/clojure/zNA7S-zdL94/unsubscribe.
To unsubscribe from this group and all its topics, send an email to clojure+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
dotimes is for doing things n times. doseq is for seqs. Use dotimes when you can, doseq when you can't.
On Wed, Aug 6, 2014 at 12:13 AM, Cecil Westerhof <cldwes...@gmail.com> wrote:
2014-08-05 19:04 GMT+02:00 Thomas Heller <th.h...@gmail.com>:If you don't need the result of the for loop (which you don't in your example) use doseq.Same syntax as "for" but not lazy and no return value (well, nil to be exact)I already use dotimes, or is doseq better?