The sequence should be:
1 1 1,1 1 2,1 2 1,1 2 2,2 1 1,2 1 2,2 2 1,2 2 2
only the result: a sequence of 4 elements
How to fix it?
At a glance it seems to be working correctly. You feed the index to Last Index so the loop terminates after a single iteration.
Put 2 in the Last Index? Hope I understood the intent.
yes, the last index contains 2
No, it does not:
This will receive 1 on the 1st iteration. Maybe I’m getting it wrong but it looks iffy.
1 Like
Ah, you’re right, for some reason I interfered with the index of the old for in the last index of the new one.
1 Like