up: I | index | Zimbu documentation |
The interface that all iterators must implement. Sketch of how this is used: I.Iterator it = foo.Iterator() IF it.hasNext() && it.peekSupported() IO.print("First item: " .. it.peek().ToString()) } FOR item IN it IO.print("Item: " .. item.ToString()) }
|
FUNC $hasNext() bool @abstract @public
FUNC $next() Titem @abstract @public
FUNC $peek() Titem @abstract @public
FUNC $peekSupported() bool @abstract @public
|
Copyright 2013 Bram Moolenaar All Rights Reserved. |
Licensed under the Apache License, Version 2.0. See the LICENSE file or obtain a copy at: http://www.apache.org/licenses/LICENSE-2.0 |