repeat
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Tue Jan 18 13:36:09 PST 2011
On 1/18/11 3:24 PM, Walter Bright wrote:
> Christopher Nicholson-Sauls wrote:
>> On 01/18/11 03:07, Walter Bright wrote:
>>> Andrei Alexandrescu wrote:
>>>> I want to generalize the functionality in string's repeat and move it
>>>> outside std.string. There is an obvious semantic clash here. If you
>>>> say repeat("abc", 3) did you mean one string "abcabcabc" or three
>>>> strings "abc", "abc", and "abc"?
>>> Just a thought:
>>>
>>> concat(repeat("abc",3))
>>>
>>> yields "abcabcabc"
>>>
>>> ?
>>
>> Nah. Too obvious.
>>
>> On a more serious note, I have no issue with join(repeat("abc",3)).
>
> Eh, I forgot about join!
It's Porsche-uh (and join-er).
Andrei
More information about the Digitalmars-d
mailing list