Read Me - Common Public License V1.0 - Copyright Notice(©)

next


>>-next(index)-------------------------------------------------><

Returns the index of the item that follows the array item having index [index] or returns the Nil object if the item having that index is last in the array. For multi-dimension arrays, the same ordering used by the allitems() () method is used to determine the next position and the index is returned as an array of index values.

Note that the index argument may also be specified as an array of indexes.

Array class - next method

a = .array~of("Fred", , "Mike", , "David")
say a~next(3)  -- says: 5

Read Me - Common Public License V1.0 - Copyright Notice(©)