Inferring static array size

NotYouAgain NotYouAgain at gmail.com
Fri May 3 12:12:29 UTC 2024


On Friday, 3 May 2024 at 11:45:27 UTC, NotYouAgain wrote:
> ...

and this won't work either:

int i = 2;
//int[10] powersOfTwo = generate!(() => i *= 2)().take(10).array; 
// fine
auto powersOfTwo = staticArray!(generate!(() => i *= 
2)().take(10).array); // nope



More information about the dip.ideas mailing list