(ES6Iterator. s)
(deftype ES6Iterator [^:mutable s] Object (next [_] (if-not (nil? s) (let [x (first s)] (set! s (next s)) #js {:value x :done false}) #js {:value nil :done true})))