I came across this other post looking for a way to create an Iterator[Long]
.
Currently the Scala SDK does not have any Iterator constructor that produces an Iterator[Long]
.
Other collection types may (unverified) provide some kind of constructor, yielding a value from which a call to .iterator
may produce a Iterator[Long]
, but how can you guarantee the 'lazy and forgetful' semantics of an Iterator?