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