StringIterator¶
Import: import system.text;
Read the usage guide for examples and common tasks. This reference lists the public declarations for this part of the library. See Reading API signatures for parameter and result notation.
StringIterator¶
Cursor produced by string.iterator().
iterator¶
So for (let c in s.chars()) uses the enumerator protocol on the cursor itself.
next¶
Yields the next UTF-16 code unit or None.