For loops conditional/filtering (for in if)
#9573
Unanswered
Apollo-Roboto
asked this question in
Ideas
Replies: 1 comment 2 replies
-
|
Indeed, right now there must be an intermediate Rectangle as a workaround. I think allowing this syntax would make sense: Another proposal from #1328 But the first option might have less challenge than arbitrary |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Link to SlintPad
I want to suggest a syntax to filter arrays with the for loops. Maybe something similar to Python like this:
What works currently is to wrap your element in a
Rectangleand call the condition inside it. Which is not as pretty to me.Beta Was this translation helpful? Give feedback.
All reactions