foreach_reverse is better than ever

Mike James foo at bar.com
Sun Feb 14 03:35:56 PST 2010


Andrei Alexandrescu Wrote:

> Gone, that is. Walter agreed to remove it.
> 
> To achieve the functionality of
> 
> foreach_reverse (r) { ... }
> 
> use
> 
> foreach (retro(r)) { ... }
> 
> using retro in std.range.
> 
> 
> Andrei

I think Reverse would have been a better title. Retro sounds like you might be using only 8088 assembler instructions in the output...

-=mike=-



More information about the Digitalmars-d mailing list