In the doc for dotimes, the "bindings" are required as "name n" (see below). Hence (dotimes [i 5] ... ) is the only pattern. Check out (doseq and (for for what you're trying to do.
user=> (doc dotimes) ------------------------- clojure.core/dotimes ([bindings & body]) Macro bindings => name n Repeatedly executes body (presumably for side-effects) with name bound to integers from 0 through n-1. -Rgds, Adrian. On Sat, Feb 6, 2010 at 12:10 PM, Аркадий Рост <[email protected]> wrote: > Hi! >>>dotimes >>>macro >>>Usage: (dotimes bindings & body) > This is from clojure api. > But I don't know how to use dotimes with several bindings. I've tried > to do it different ways, but I got error every time. > > So how to use dotimes with several bindings? > > -- > 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 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
