Range operator
FQL supports expressing simple numeric ranges with the .. operator. This operator can be used to easily iterate over a sequence of numeric values.
The .. operator will produce an array of the integer values in the defined range, with both bounding values included.
example.fql
Ferret v2
query.fql
FQL
RETURN 2010..2013
result.json
output
Next steps
Learn
Operators
Compare, combine, and transform values with FQL's operators.
Learn
For Loops
Iterate over collections and ranges, and shape results with FILTER, SORT, LIMIT, and COLLECT.
Learn
Array Operators
Array expansion, flattening, inline expressions, the question mark operator, and array comparison operators.