mirror of https://gitee.com/bigwinds/arangodb
clarify meaning of range operator (#3780)
This commit is contained in:
parent
cb3b71d697
commit
bc19a48ee5
|
@ -287,8 +287,8 @@ AQL supports expressing simple numeric ranges with the *..* operator.
|
||||||
This operator can be used to easily iterate over a sequence of numeric
|
This operator can be used to easily iterate over a sequence of numeric
|
||||||
values.
|
values.
|
||||||
|
|
||||||
The *..* operator will produce an array of values in the defined range, with
|
The *..* operator will produce an array of the integer values in the
|
||||||
both bounding values included.
|
defined range, with both bounding values included.
|
||||||
|
|
||||||
*Examples*
|
*Examples*
|
||||||
|
|
||||||
|
@ -302,6 +302,11 @@ will produce the following result:
|
||||||
[ 2010, 2011, 2012, 2013 ]
|
[ 2010, 2011, 2012, 2013 ]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Using the range operator is equivalent to writing an array with the integer
|
||||||
|
values in the range specified by the bounds of the range. If the bounds of
|
||||||
|
the range operator are non-integers, they will be converted to integer
|
||||||
|
values first.
|
||||||
|
|
||||||
There is also a [RANGE() function](Functions/Numeric.md#range).
|
There is also a [RANGE() function](Functions/Numeric.md#range).
|
||||||
|
|
||||||
#### Array operators
|
#### Array operators
|
||||||
|
|
Loading…
Reference in New Issue