Open dalcde opened 5 years ago
Looking at the code, this already seems to be present: the variable \iteration
contains which iteration it's on, starting with 1. The code also seems to keep track of nested iterations, so for instance \csname iteration\space1\endcsname
contains how many times the outermost loop has iterated.
I'm not sure whether I failed to document this because I was feeling ambivalent about whether or not I wanted to keep this feature or because I forgot about it. I probably ought to document it now.
It would be helpful to have a counter available in DoUntilOutOfBounds that one can use to name elements produced.