StringIter

typesince v0.0-2301Edit
(StringIter. s i)

Source code @ clojurescript:src/main/cljs/cljs/core.cljs
(deftype StringIter [s ^:mutable i]
  Object
  (hasNext [_] (< i (.-length s)))
  (next [_]
    (let [ret (.charAt s i)]
      (set! i (inc i))
      ret))
  (remove [_] (js/Error. "Unsupported operation")))