Built-in function to iterate over a range of sequential numbers #4708
-
Most of the examples of creating a variable number of elements I have seen in the documentation are of this form: for item[index] in collection : SomeElement { ... } I would like to do something rather simple; drawing gridlines on a rectangle. The first way I think to do it would be to iterate over a range of numbers If not already existing, would this be a valid case for its addition? For example, something like... for _[index] in @range(10) : Path { ... } // Similar to Python's range() method |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Ah, found it noted in the
This is definitely not expected, |
Beta Was this translation helpful? Give feedback.
Ah, found it noted in the
Syntax > Repetition
reference:This is definitely not expected,
for index in 10
immediately looks like a syntax error to me.