Template, similar to iota(), but generates a tuple at compile time.
Useful for "static foreach" loops, where range extrema are compile time constants:
foreach (i; Iota!(3)) a[i] = b[i]; // becomes unrolled and compiled as: a[0] = b[0]; a[1] = b[1]; a[2] = b[2];
See Implementation https://issues.dlang.org/show_bug.cgi?id=4085
Template, similar to iota(), but generates a tuple at compile time.
Useful for "static foreach" loops, where range extrema are compile time constants: