Pike v8.0 release 1738

Method types()


Method types

array(type) types(string|array|mapping|multiset|object x)

Description

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

For strings this is simply an array with int

For arrays, mappings and multisets this is simply an array with mixed.

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

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

Note

This function was added in Pike 7.9.

See also

indices(), values(), lfun::_types()