PersistentArrayMapIterator

typesince v0.0-2371Edit
(PersistentArrayMapIterator. arr i cnt)

Source code @ clojurescript:src/main/cljs/cljs/core.cljs
(deftype PersistentArrayMapIterator [arr ^:mutable i cnt]
  Object
  (hasNext [_]
    (< i cnt))
  (next [_]
    (let [ret (MapEntry. (aget arr i) (aget arr (inc i)) nil)]
      (set! i (+ i 2))
      ret)))