Well, in C.. I can do:int arr[2] = { [0]=10, [1]=20 }; I cannot work out how to do that in D yet (anyone know??)
Oh. just worked it out after reading this thread ;-) int[2] arr = [ 0:10, 1:20 ];
psychoticRabbit via Digitalmars-d-learn Sat, 10 Feb 2018 17:30:44 -0800
Well, in C.. I can do:int arr[2] = { [0]=10, [1]=20 }; I cannot work out how to do that in D yet (anyone know??)
Oh. just worked it out after reading this thread ;-) int[2] arr = [ 0:10, 1:20 ];