(es6-iterator-seq iter)
Given an ES2015+ compatible iterator return a seq.
(defn es6-iterator-seq [iter] (let [v (.next iter)] (if (.-done v) nil (ES6IteratorSeq. (.-value v) iter nil))))