dotimes

macrosince v0.0-927 clojure.core/dotimesEdit
(dotimes bindings & body)

Details:

Repeatedly executes body (presumably for side-effects) with name bound to integers from 0 through n-1.


See Also:


Source docstring:
bindings => name n

Repeatedly executes body (presumably for side-effects) with name
bound to integers from 0 through n-1.
Source code @ clojurescript:src/main/clojure/cljs/core.cljc
(core/defmacro dotimes
  [bindings & body]
  (core/let [i (first bindings)
             n (second bindings)]
    `(let [n# ~n]
       (loop [~i 0]
         (when (< ~i n#)
           ~@body
           (recur (inc ~i)))))))