Unverified Commit df330d74 authored by Wang Pengcheng's avatar Wang Pengcheng 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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment