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")) ;
Re: Problem with std.algorithm.iteration::substitute
Jesse Phillips via Digitalmars-d-learn Sat, 11 Jan 2020 12:11:20 -0800
- Problem with std.algorithm.iteratio... Martin Brezl via Digitalmars-d-learn
- Re: Problem with std.algorithm... Martin Brezl via Digitalmars-d-learn
- Re: Problem with std.algorithm... Jesse Phillips via Digitalmars-d-learn
- Re: Problem with std.algor... Jesse Phillips via Digitalmars-d-learn