foreach_reverse is better than ever

Daniel Murphy yebbliesnospam at gmail.com
Sun Feb 14 01:58:50 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

What about where foreach is being done over something other than a range?
eg.
foreach(i; 1..100)
foreach(v; structwithopapply)



More information about the Digitalmars-d mailing list