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

[Top]

indices()


Method indices

array indices(string|array|mapping|multiset|object x)

Description

Return an array of all valid indices for the value x .

For strings and arrays this is simply an array of ascending numbers.

For mappings and multisets, the array might contain any value.

For objects which define lfun::_indices() that return value is used.

For other objects an array with all non-protected symbols is returned.

See also

values()

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