the array to scan
the item to replace
the item to replace all instances of from with
A new array without changing the contents of subject, or the original array if no match is found.
assert("Hello Wörld".replace("o Wö", "o Wo") == "Hello World"); assert("Hello Wörld".replace("l", "h") == "Hehho Wörhd");
std.algorithm.iteration.substitute for a lazy replace.
Replace occurrences of from with to in subject in a new array.