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?
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?