You can also turn your function into a fold.

auto searches = ["1", "2"];
writeln (searches.fold!((a, b)  => a.substitute(b, "number").to!string)("come 1 come 2")) ;


Reply via email to