more naming

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Sat Jan 22 09:18:10 PST 2011


On 1/22/11 10:47 AM, Andrej Mitrovic wrote:
> What if you want to replace a _count_ number of occurrences of needle
> in haystack with nail? That's what Python's replace does, although I
> think that only works for strings in Python.

A specific count is rare but can be added as a defaulted parameter. The 
only problem is that one is special because it accepts a weaker range as 
replacement.

Andrei


More information about the Digitalmars-d mailing list