repeat

Andrej Mitrovic andrej.mitrovich at gmail.com
Mon Jan 17 11:00:27 PST 2011


On 1/17/11, Andrei Alexandrescu <SeeWebsiteForEmail at erdani.org> wrote:
> On 1/17/11 12:25 PM, Andrej Mitrovic wrote:
>> How about..:
>>
>> repeat("abc", 3) ->  "abcabcabc"
>> reproduce("abc", 3) ->  ["abc", "abc", "abc"]
>
> If I only told you the library has repeat and reproduce, could you be
> able to tell without looking at the documentation?
>
> Andrei
>

Yeah, I see your point. Other names that come to mind are duplicate,
replicate, clone, repeatRange..


More information about the Digitalmars-d mailing list