Why is there no range iteration with index by the language?

Stefan Koch uplink.coder at googlemail.com
Wed Jun 10 00:33:20 UTC 2020


On Tuesday, 9 June 2020 at 23:53:16 UTC, Q. Schroll wrote:
> Is there any particular reason why std.range : enumerate is a 
> thing and
>
> [...]

I don't think there is any particular reason. Other than that 
might shadow an opApply.
And C++ iterators didn't have it.


More information about the Digitalmars-d-learn mailing list