diff options
author | Stephen Dolan <mu@netsoc.tcd.ie> | 2013-05-14 16:09:10 +0100 |
---|---|---|
committer | Stephen Dolan <mu@netsoc.tcd.ie> | 2013-05-14 16:09:10 +0100 |
commit | 81be37b23601a948164f0eb4a4f0331fa83ccf15 (patch) | |
tree | 2b606e494caf6dff94405481a1e3a3557684d821 /docs | |
parent | 4d540b7102cb3a63ea5b966b1bbe42ad275fbf25 (diff) |
Add the range function
Diffstat (limited to 'docs')
-rw-r--r-- | docs/content/3.manual/manual.yml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/content/3.manual/manual.yml b/docs/content/3.manual/manual.yml index 94348ea7..e5fff391 100644 --- a/docs/content/3.manual/manual.yml +++ b/docs/content/3.manual/manual.yml @@ -588,6 +588,22 @@ sections: - program: add input: '[]' output: ["null"] + + - title: `range` + body: | + + The `range` function produces a range of numbers. `range(4;10)` + produces 6 numbers, from 4 (inclusive) to 10 (exclusive). The numbers + are produced as separate outputs. Use `[range(4;10)]` to get a range as + an array. + + examples: + - program: 'range(2;4)' + input: 'null' + output: ['2', '3'] + - program: '[range(2;4)]' + input: 'null' + output: ['[2,3]'] - title: `tonumber` body: | |