Extracted from Pike v8.0 release 28 as of 2015-09-20.
   

Method Iterator()->index()


Method index

mixed index()

Description

Returns the current index, or UNDEFINED if the iterator doesn't point to any item.

If there's no obvious index set then the index is the current position in the data set, counting from 0 (zero).