1
0
Fork 0

Doc - Correct AQL function examples (#8299)

This commit is contained in:
Simran 2019-05-06 12:05:45 +02:00 committed by GitHub
parent 169e6f07de
commit 624008a20c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 7 deletions

View File

@ -10,8 +10,8 @@ ATTRIBUTES()
`ATTRIBUTES(document, removeInternal, sort) → strArray`
Return the attribute keys of the *document* as an array. Optionally omit
system attributes.
Return the top-level attribute keys of the *document* as an array.
Optionally omit system attributes and sort the array.
- **document** (object): an arbitrary document / object
- **removeInternal** (bool, *optional*): whether all system attributes (*_key*, *_id* etc.,

View File

@ -430,10 +430,11 @@ RANGE()
`RANGE(start, stop, step) → numArray`
Return an array of numbers in the specified range, optionally with increments
other than 1.
other than 1. The *start* and *stop* arguments are truncated to integers
unless a *step* argument is provided.
For integer ranges, use the [range operator](../Operators.md#range-operator)
instead for better performance.
Also see the [range operator](../Operators.md#range-operator) for ranges
with integer bounds and a step size of 1.
- **start** (number): the value to start the range at (inclusive)
- **stop** (number): the value to end the range with (inclusive)
@ -445,7 +446,8 @@ instead for better performance.
RANGE(1, 4) // [ 1, 2, 3, 4 ]
RANGE(1, 4, 2) // [ 1, 3 ]
RANGE(1, 4, 3) // [ 1, 4 ]
RANGE(1.5, 2.5) // [ 1.5, 2.5 ]
RANGE(1.5, 2.5) // [ 1, 2 ]
RANGE(1.5, 2.5, 1) // [ 1.5, 2.5 ]
RANGE(1.5, 2.5, 0.5) // [ 1.5, 2, 2.5 ]
RANGE(-0.75, 1.1, 0.5) // [ -0.75, -0.25, 0.25, 0.75 ]
```

View File

@ -735,7 +735,7 @@ Split the given string *value* into a list of strings, using the *separator*.
```js
SPLIT( "foo-bar-baz", "-" ) // [ "foo", "bar", "baz" ]
SPLIT( "foo-bar-baz", "-", 1 ) // [ "foo", "bar-baz" ]
SPLIT( "foo-bar-baz", "-", 1 ) // [ "foo" ]
SPLIT( "foo, bar & baz", [ ", ", " & " ] ) // [ "foo", "bar", "baz" ]
```