Re: [Phix] Language Feature Request: For Each
- Posted by _tom (admin) Dec 13, 2021
- 1162 views
my typing is slow...
- a flaw in the Python model is you do not have access to the index
- second flaw, is off-by-one indexing
I find the index handy because sometimes I want to "look ahead" or "look behind" the element currently selected ... therefore I sometimes need the index.
this ''each'' version uses existing OE/Phix syntax
be well