Method indices()
- Method
indices
arrayindices(string|array|mapping|multiset|object|programx)- Description
Return an array of all valid indices for the value
x.- Parameter
x stringFor strings and arrays this is simply an array of ascending numbers.
arraymappingFor mappings and multisets, the array might contain any value.
multisetobjectFor objects which define lfun::_indices() that return value is used.
For other objects an array with the names of all non-protected symbols is returned.
programFor programs an array with the names of all non-protected constant identifiers (but not methods or variables) is returned.
- See also