Lazy std.algorithm.replace()
Ali Çehreli via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Nov 2 11:53:08 PST 2015
On 11/02/2015 04:22 AM, Nordlöw wrote:
> 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?
>
> Ping.
What is the use case?
The implementation doesn't seem trivial to me as it needs to maintain an
internal buffer as large as the 'to' argument to do the mutation in.
Ali
More information about the Digitalmars-d-learn
mailing list