summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorStephen Dolan <mu@netsoc.tcd.ie>2012-10-22 23:31:07 +0100
committerStephen Dolan <mu@netsoc.tcd.ie>2012-10-22 23:31:07 +0100
commit2a610da2d14583a08f016d0f985db65203d1f76f (patch)
tree5c98e3ff524ec652b4bbfce0fc6eeda1f793409f /docs
parent93f80b27260743dc0ea092dfdbaf81666b853508 (diff)
Allow the 'keys' function to take arrays.
Diffstat (limited to 'docs')
-rw-r--r--docs/content/3.manual/manual.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/content/3.manual/manual.yml b/docs/content/3.manual/manual.yml
index 5981ce42..6c107700 100644
--- a/docs/content/3.manual/manual.yml
+++ b/docs/content/3.manual/manual.yml
@@ -385,10 +385,16 @@ sections:
same for any two objects with the same set of keys,
regardless of locale settings.
+ When `keys` is given an array, it returns the valid indices
+ for that array: the integers from 0 to length-1.
+
examples:
- program: 'keys'
input: '{"abc": 1, "abcd": 2, "Foo": 3}'
output: ['["Foo", "abc", "abcd"]']
+ - program: 'keys'
+ input: '[42,3,35]'
+ output: ['[0,1,2]']
- title: `select`
body: |