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

MemberDescriptionAvailable through
iteratorReturns this cursor without restarting array traversal.
nextAdvances to the next array element.