On 2010-02-14 07:15:55 -0500, bearophile <[email protected]> said:

The first can be done turning an interval into syntax sugar for iota(1,100):
The foreach(i; retro(1 .. 100))

I'm all for it, but we'll need to have 1..100 mapped to a new interval type for this to work. Then you can easily implement this (among many other interesting things):

        auto reverse(Interval!int interval) { ... }


--
Michel Fortin
[email protected]
http://michelf.com/

Reply via email to