Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEATURE] Add generate_series(start,stop,step) expression function
The function creates an array containing a sequence of numbers.
- Loading branch information
Showing
3 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"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'"} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters