pike.ida.liu.se
Search for
Home > Docs > Pike reference

[Top]
Iterator

Iterator()->next()


Method next

int next()

Description

If this function is defined it should advance the iterator one step, just like `+= (1) would do.

Note

This is the preferred way to advance the iterator, since it reduces the overhead.

Note

This function was optional in Pike 7.6 and earlier.

Returns

Returns 1 if it succeeded in advancing, and 0 (zero) if it has reached the end of the iterator.

Module reference for Pike v7.8 release 116, 2008-12-31