Skip to content

Number Ranges

Derek Callaway edited this page Jun 15, 2018 · 13 revisions

strglob wiki

Number Ranges

The number ranges feature of strglob implements an ordered sequence of whole numbers. There are two ways to specify a numeric range. One is by surrounding the numbers with square brackets and using a dash as a delimiter. The other is by separating them with a "double dot" sequence (..) with an optional increment value afterwards. Refer to the examples below for simple demonstrations.


Example Inputs

[1-4]
{1..4}
{1..4..1}


Example Output

1
2
3
4