Initializing help system before first use

arrayiterator Type

The xreflect module provides a new type xreflect~arrayiterator which will allow you to programatically iterate through the entries of a named array. Each arrayiterator variable represents an iteration through the array, from start to end.

You initially associate the arrayiterator with an array by calling the iteratorinit procedure. The iterator has a current position in the array; this will initially be before the first entry. Then every time you call nextvalue, the iterator will advance to the next entry in the array - initially the first, then the second, etc. nextvalue returns true until the iterator reaches the end of the array, when it returns false.

While iterating through the array, you can obtain information about the current entry using the getindices and getvalue functions.