function | since v0.0-2301 | Edit |
(iter coll)
(defn iter [coll]
(cond
(iterable? coll) (-iterator coll)
(nil? coll) (nil-iter)
(string? coll) (string-iter coll)
(array? coll) (array-iter coll)
(seqable? coll) (seq-iter coll)
:else (throw (js/Error. (str "Cannot create iterator from " coll)))))