Allow inverted ranges with negative steps.
arr)
3 (do
(def [n m s] args)
- (def arr (array/new (math/ceil (/ n s))))
- (loop [i :range [n m s]] (array/push arr i))
- arr)
+ (if (neg? s)
+ (seq [i :down [n m (- s)]] i)
+ (seq [i :range [n m s]] i)))
(error "expected 1 to 3 arguments to range")))
(defn find-index
