Ok, so I use for i, v in pairs(T) quite a bit. But what if I want to reverse the order? Can you add a step in the pairs loop, or a negative step?
COMMUNITY QUESTION
How do you do a for i, v in pairs reversed?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
You could do (#T-i)+1 I think
I can't seem to figure out the pairs equivalent, i tried some variations of that, but for now, I just went with a generic index iterator: `` for i = #bl, 1, -1 do; v = tbl[i]; end