type | since v0.0-2371 | clojure.lang/RangeIterator | Edit |
(RangeIterator. i end step)
(deftype RangeIterator [^:mutable i end step]
Object
(hasNext [_]
(if (pos? step)
(< i end)
(> i end)))
(next [_]
(let [ret i]
(set! i (+ i step))
ret)))