diff --git a/doc/builtin/indices b/doc/builtin/indices index f6686134cfbe0dbbadd2c0c85e292302edc8d74a..9c1db3c5af20e542a1a18f68c2cdecf5dd65484d 100644 --- a/doc/builtin/indices +++ b/doc/builtin/indices @@ -2,13 +2,13 @@ NAME indices - return an array of all index possible for a value SYNTAX - mixed *indices(string|array|mapping|list foo); + mixed *indices(string|array|mapping|list|object foo); DESCRIPTION Indices returns an array of all values you can use as index when indexing foo. For strings and arrays this is simply an array of the ascending numbers. For mappings and lists, the array may contain any - kind of value. + kind of value. For objects, the result is an array of strings. SEE ALSO values diff --git a/doc/builtin/values b/doc/builtin/values index 342e1ef8610d75b7456301c149cb135b89d473a9..ee6e4e69826ba13358341f0d2533a9c03fbe9360 100644 --- a/doc/builtin/values +++ b/doc/builtin/values @@ -2,14 +2,14 @@ NAME values - return an array of all possible values from indexing SYNTAX - mixed *values(string|list|mapping|array foo); + mixed *values(string|list|mapping|array|object foo); DESCRIPTION Values return an array of all values you can get when indexing the value foo. For strings, an array of int with the ascii values of the characters in the string is returned. For a list, an array filled with - ones is return. For mappings and arrays, the returned array may - contain any kind of value. + ones is return. For mappings, objects and arrays, the returned array + may contain any kind of value. SEE ALSO indices