Iterators
Iterators are "pointers" that allow you to loop through collections of any size without creating any artifacts; they are the basis for the Looping functions.
Iterators are much more efficient for navigating for larger collections; they don't create any artifacts in memory for the keys or values, but just navigate through the collections' values one by one.
Collections expose the following iterators for all iterable collections:
keyIter()
: Iterator
Iterates over the keys.
itemIter()
: Iterator
Iterates over the values.
storeIter()
: Iterator
iterates over the store as a whole, returning [key, item]
pairs. for strings and Sets, the keys are integers,
unlike the native iterator that returns [value, value]
pairs.