clojure.core/iterator-seq¶
Returns a seq on a java.util.Iterator. Note that most collections providing iterators implement Iterable and thus support seq directly. Seqs cache values, thus iterator-seq should not be used on any iterator that repeatedly returns the same mutable object.
Examples¶
Note by dakrone¶
I've noticed that I needed to use iterator-seq when trying to map over a Java function that returns an AbstractList Iterator. It was not directly seq-able.
See also¶
- clojure.core/seq (5)
Content from the matching ClojureDocs page, with authors credited on each contribution.