Lazy std.algorithm.replace()

Adam D. Ruppe via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Nov 2 12:25:43 PST 2015


On Sunday, 1 November 2015 at 14:26:21 UTC, Nordlöw wrote:
> Is there a reason why Phobos doesn't contain a lazy range 
> variant of std.string.replace?

Would something like map work with the predicate being 
if(matches_needle) return replacement; else return original; ?


More information about the Digitalmars-d-learn mailing list