QGIS/resources/function_help/json/generate_series
nirvn 3c3cc43010 [FEATURE] Add generate_series(start,stop,step) expression function
The function creates an array containing a sequence of numbers.
2018-08-20 11:56:49 +07:00

14 lines
609 B
Plaintext

{
"name": "generate_series",
"type": "function",
"description": "Creates an array containing a sequence of numbers.",
"arguments": [
{"arg":"start", "description":"first value of the sequence"},
{"arg":"stop", "description":"value that ends the sequence once reached"},
{"arg":"step","optional":true,"default":"1","description":"value used as the increment between values"}
],
"examples": [ { "expression":"generate_series('1,5)", "returns":"array: '1', '2', '3', '4', '5'"},
{ "expression":"generate_series('5,1,-1)", "returns":"array: '5', '4', '3', '2', '1'"}
]
}