Extracted from Pike v8.0 release 276 as of 2016-07-30.
   

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).