Skip to content
Unverified Commit df330d74 authored by Pengcheng Wang's avatar Pengcheng Wang Committed by GitHub
Browse files

[TableGen] Enhance !range bang operator (#66489)

We add a third argument `step` to `!range` bang operator to make it
with the same semantics as `range` in Python.

`step` can be negative. `step` is 1 by default and `step` can't be
0. If `start` < `end` and `step` is negative, or `start` > `end`
and `step` is positive, the result is an empty list.
parent 134ae13a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment