On Friday, 2 March 2018 at 10:34:31 UTC, bauss wrote:
You can also call "array" from "std.array".

    auto range = iota(5).array;

    foreach (i, el; range) {
        writeln(i, ": ", el);
    }

Thank you. That's how I had it in my original code, I was just trying to avoid gratuitous memory allocation.

Arredondo

Reply via email to