www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Array element Replace

Hi All,

   Request your help, on hot to replace an element(a[2]) in an 
array with the element(a[3])

Eg,

auto a = Array!string("T1","T2","T3");
writeln(D1.replace(a[2], a[3]));


From,
Vino.B
Feb 03 2018