Std\Iterator
Stateful pull-iterator adapters and consumers.
Iterators are single-pass values: every call to next advances the shared
cursor. Use toSeq when a persistent, reusable collection is required.
Functions
Section titled “Functions”fromSeq : Seq element -> Iterator element
Section titled “fromSeq : Seq element -> Iterator element”fromByteArray : ByteArray -> Iterator Int
Section titled “fromByteArray : ByteArray -> Iterator Int”fromIntArray : IntArray -> Iterator Int
Section titled “fromIntArray : IntArray -> Iterator Int”fromFloatArray : FloatArray -> Iterator Float
Section titled “fromFloatArray : FloatArray -> Iterator Float”next : Iterator element -> Option element
Section titled “next : Iterator element -> Option element”Advance an iterator once.
foldLeft : Iterator element -> (acc -> element -> acc) -> acc -> acc
Section titled “foldLeft : Iterator element -> (acc -> element -> acc) -> acc -> acc”Consume an iterator from left to right.
toSeq : Iterator element -> Seq element
Section titled “toSeq : Iterator element -> Seq element”Consume an iterator into a persistent sequence.