repeat

Aziz K. aziz.koeksal at gmail.com
Tue Jan 18 04:10:36 PST 2011


I would prefer it to work like this:

repeat("abc", 3) -> "abcabcabc"
repeat(["abc"], 3) -> ["abc","abc","abc"]
repeat([1,2,3], 3) -> [1,2,3,1,2,3,1,2,3]


-- 
Dil D compiler: http://code.google.com/p/dil/


More information about the Digitalmars-d mailing list