StringIterator
StringIterator: StringIterator, hasValue, value, increment, toList
struct StringIterator: Copyable, Iterator<char&>
Iterates over the characters of a string.
StringIterator
StringIterator(string s)Initializes an iterator over the given string.
hasValue
bool hasValue()Returns true if there are more characters.
value
char& value()Returns the current character.
increment
void increment()Advances to the next character.
toList
List<char> toList()Collects the remaining characters into a list.