Provide the .dup array property.
1 auto arr = [1, 2]; 2 auto arr2 = arr.dup; 3 arr[0] = 0; 4 assert(arr == [0, 2]); 5 assert(arr2 == [1, 2]);
Provide the .dup array property.