Skip to content

Reverse Ranges

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

strglob wiki

Reverse Ranges

The reverse ranges feature of strglob implements an ordered sequence of (possibly negative) integers or letters. Specifying a reverse range is almost identical to specifying a normal range except that the minimum and maximum values are switched, i.e. the maximum value is to the left of the dash delimiter and the minimum value is to the right of it. Refer to the examples below for simple demonstrations.


Example Inputs

[d-a]
{d..a}
{d..a..1}


Example Output

d
c
b
a


Clone this wiki locally