Function: -iota
-iota is a byte-compiled function defined in dash.el.
Signature
(-iota COUNT &optional START STEP)
Documentation
Return a list containing COUNT numbers.
Starts from START and adds STEP each time. The default START is zero, the default STEP is 1. This function takes its name from the corresponding primitive in the APL language.
Source Code
;; Defined in ~/.emacs.d/elpa/dash-20260221.1346/dash.el
(defun -iota (count &optional start step)
"Return a list containing COUNT numbers.
Starts from START and adds STEP each time. The default START is
zero, the default STEP is 1.
This function takes its name from the corresponding primitive in
the APL language."
(declare (side-effect-free t))
(unless (natnump count)
(signal 'wrong-type-argument (list #'natnump count)))
(or start (setq start 0))
(or step (setq step 1))
(if (zerop step)
(make-list count start)
(--iterate (+ it step) start count)))