SplitScript reference / ArrayIterator
ArrayIterator
type constructor
ArrayIterator<T>
Iterates over an array while detecting structural mutation.
Examples
Name an array cursor in an interface
state "game.exe" {}
fn inspect(iterator: ArrayIterator<u32>) {}
Methods
| Member | Description | Available through |
|---|---|---|
| iterator | Returns this cursor without restarting array traversal. | |
| next | Advances to the next array element. |