from-to
Returns the list of integers between "from" and "to" inclusive. If "from" is greater than "to", this list is empty.
Signature
from-to(from:number, to:number) -> list of number |
Parameters
Name | Type | Description |
---|---|---|
from | number | Specifies the starting index ("from"). |
to | number | Specifies the ending index ("to"). |
Examples
The following expression produces [3, 4, 5, 6, 7]:
from-to(3, 7) |