repeat

spir denis.spir at gmail.com
Mon Jan 17 10:59:16 PST 2011


On 01/17/2011 07:53 PM, Adam Ruppe wrote:
> It seems to me that you actually want two separate functions:
>
> repeat("abc", 3) =>  ["abc", "abc", "abc"]
>
> join(repeat("abc", 3)) =>  "abcabcabc"

Would rather see:

repeat("abc", 3) => ["abc", "abc", "abc"]
"abc" * 3        => "abcabcabc"


Denis
_________________
vita es estrany
spir.wikidot.com



More information about the Digitalmars-d mailing list