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 <[email protected]> wrote: > 2014-08-05 19:04 GMT+02:00 Thomas Heller <[email protected]>: > > 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? > > > -- > Cecil Westerhof > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to [email protected] > Note that posts from new members are moderated - please be patient with > your first post. > To unsubscribe from this group, send email to > [email protected] > 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 > [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
