"
(declare (type (integer 0) n) (number start step))
(loop repeat n
- ;; KLUDGE: get numeric contagion right for the first element too
- for i = (+ start (- step step)) then (+ i step)
- collect i))
+ ;; KLUDGE: get numeric contagion right for the first element too
+ for i = (+ (- (+ start step) step)) then (+ i step)
+ collect i))
(declaim (inline map-iota))
(defun map-iota (function n &key (start 0) (step 1))
t
t
t)
+
+(deftest iota.fp-start-and-complex-integer-step
+ (equal '(#C(0.0 0.0) #C(0.0 2.0) #C(0.0 4.0))
+ (iota 3 :start 0.0 :step #C(0 2)))
+ t)