On Tue, Jun 09, 2020 at 05:03:55PM -0700, H. S. Teoh via Digitalmars-d-learn wrote: > On Tue, Jun 09, 2020 at 11:53:16PM +0000, Q. Schroll via Digitalmars-d-learn > wrote: > > Is there any particular reason why std.range : enumerate is a thing > > and > > > > foreach (i, e; range) { ... } > > > > doesn't work from the get-go? > [...] > > std.range.indexed is your friend. ;-) [...]
Aaah, that function doesn't do what I thought it did. Sorry!! :-( What you want is std.range.enumerate. But you already knew that. T -- EMACS = Extremely Massive And Cumbersome System