foreach

via Digitalmars-d digitalmars-d at puremagic.com
Fri Jun 13 02:28:24 PDT 2014


On Thursday, 12 June 2014 at 22:38:26 UTC, Daniel Kozák via 
Digitalmars-d wrote:
> No problem for me:
> http://stackoverflow.com/questions/23950796/how-to-repeat-a-statement-n-times-simple-loop/23952012#23952012

Would be nice if we could elide the parentheses and semicolons:

     10.times! {
         writeln("Do It!");
     }
     10.times! (uint n) {
         writeln(n + 1, " Round");
     }


More information about the Digitalmars-d mailing list