| The interface for an iterator that provides access to its current
position.
Sketch of how this is used:
I.KeyIterator kit = foo.KeyIterator()
IF kit.hasNext() && kit.peekSupported()
KeyType key, ItemType item = kit.peek()
IO.print("First item[" .. key.ToString() .. "]: " .. item.ToString())
}
FOR key, item IN kit
IO.print("Item[" .. key.ToString() .. "]: " .. item.ToString())
}
|
$hasNext()
bool @public | Returns TRUE when there is another item to fetch.
|
|
$next()
Tkey, Titem @public | Returns the next key/item and advances.
|
|
$peekSupported()
bool @public | Returns TRUE when peek() is supported.
|
|
$peek()
Tkey, Titem @public | Returns the next key/item without advancing.
| |
|