references/aggressor-functions/range.md

GitHub

range

Generate an array of numbers based on a string description of ranges.

Arguments

$1 - a string with a description of ranges

Result
The number 103
The numbers 3, 4, 5, 6, and 7.
The numbers 2, 4, and 5.

Returns

An array of numbers within the specified ranges.

Example

printAll(range("2,4-6"));```