It might help to make code faster and easier to read to allow multiple 'for each' clauses in a repeat.
For example:
Code: Select all
repeat for each byte b in x for each item i in y
The syntax would need cleaning up and might be this:
Code: Select all
repeat for each char xChar in x and for each line yLine in y
I'm not meaning nested, that is straightforward as it is. I mean in parallel. That is, in the first example, the first byte and Item for the first iteration. Then the second byte with the second item for the second iteration. And so on.
The number of iterations can be for the shortest or for the longest, just as long as it is define.
This avoids having to maintain an index for the second iterator, clouding code and increasing execution time.