(rontolisp) docs
← Seqs

iterator-seq

(iterator-seq iter)

Answers the seq of the members a java.util.Iterator steps, nil when it has none, realized one member at a time through hasNext and next (the oracle realizes 32 at a time). The iterator may be a reify or deftype implementing java.util.Iterator (collection interfaces), the .iterator of a core collection or an Iterable type, or a host iterator (interpreter and JVM).