Bram Moolenaar wrote:
Hari Krishna Dara wrote:
[...]
but adding a for loop variant should
be much simpler.
[...]

I don't know what you mean with "loop variant".


I think he means something like

        :for i=1 to 100 [by 5]
        :       " do something
        :endfor

or

        :for i=1; i<=100; i+=5
        :       " do something
        :endfor

depending on the kind of language we want to "imitate". The difference with range() would be in generating the next index as needed, rather than all of them in a bunch.


Best regards,
Tony.

Reply via email to