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

Reply via email to