@arr
Generate an array of sequential integers from start (inclusive) to end (exclusive).
Returns: array
Syntax
Section titled “Syntax”@arr(start end)Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
start |
number |
Start value (inclusive) |
end |
number |
End value (exclusive) |
Examples
Section titled “Examples”# Generate [0, 1, 2, 3, 4]set $nums @arr(0 5)
# Generate [3, 4, 5, 6]set $nums @arr(3 7)See Also
Section titled “See Also”- loop — iterate over arrays