| | 27 | == New expressions == |
| | 28 | |
| | 29 | Some new expressions will make it easy to create new ranges and domains using range and domain literals. |
| | 30 | |
| | 31 | The range literal |
| | 32 | {{{ |
| | 33 | lo..hi |
| | 34 | }}} |
| | 35 | where `lo` and `hi` are expressions of integer type, represents the same range as `$range_regular(lo, hi, 1)`. The range literal |
| | 36 | {{{ |
| | 37 | lo..hi#step |
| | 38 | }}} |
| | 39 | where all three identifiers signify expressions of integer type, represents the same range as `$range_regular(lo, hi, step)`. |
| | 40 | |
| | 41 | The domain literal |
| | 42 | {{{ |
| | 43 | { r1, r2, ...} |
| | 44 | }}} |
| | 45 | where `r1`, `r2`, ..., are all expressions of range type, represents the domain `$domain_rectangular(r1, r2, ...)`. |