On 5/20/22 18:26, forkit wrote: > { > foreach(i, e; iota(5,11).array) > writeln(i, ":", e); > } That .array may be unnecessarily expensive in some cases because it allocates memory. The following is an alternative: foreach(i, e; iota(5,11).enumerate) writeln(i, ":", e); Ali