void main() { import std.stdio : writeln; int[] arr = [1, 3, 4]; for (int i = 0; i < arr.length; i++) { arr[i] *= 2; } writeln(arr); // [2, 6, 8] }