Function: -dotimes

-dotimes is a byte-compiled function defined in dash.el.

Signature

(-dotimes NUM FN)

Documentation

Call FN NUM times, presumably for side effects.

FN is called with a single argument on successive integers running from 0, inclusive, to NUM, exclusive. FN is not called if NUM is less than 1.

This function's anaphoric counterpart is --dotimes.

View in manual

Source Code

;; Defined in ~/.emacs.d/elpa/dash-20260221.1346/dash.el
(defun -dotimes (num fn)
  "Call FN NUM times, presumably for side effects.
FN is called with a single argument on successive integers
running from 0, inclusive, to NUM, exclusive.  FN is not called
if NUM is less than 1.

This function's anaphoric counterpart is `--dotimes'."
  (declare (indent 1))
  (--dotimes num (funcall fn it)))