repeat

Daniel Gibson metalcaedes at gmail.com
Tue Jan 18 01:10:51 PST 2011


Am 18.01.2011 10:07, schrieb Walter Bright:
> 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"
>
> ?

:-)


More information about the Digitalmars-d mailing list