Range Construction Pattern

"Nordlöw" per.nordlow at gmail.com
Sat Feb 22 04:29:09 PST 2014


Assumed I have the following code

     SysTime[] times;
     const n = 3;
     foreach (i; 0..n) times ~= Clock.currTime;

is there a simpler, perhaps functional, higher order pattern with 
which to achieve the same goal?


More information about the Digitalmars-d-learn mailing list