does D already have too many language features ?

jmh530 john.michael.hall at gmail.com
Tue Apr 9 12:30:58 UTC 2019


On Tuesday, 9 April 2019 at 12:19:20 UTC, bauss wrote:
> 
>
> Yep could be similar to Python's range.
>
> [snip]

Or...

import std.range;
import std.stdio : writeln;

void main()
{
     foreach (i; iota(10))
     {
         writeln(i);
     }

     foreach (i; iota(10, 0, -1))
     {
         writeln(i);
     }
}


More information about the Digitalmars-d mailing list