String rep(String str, Int x)
Arguments
str: The string to repeatx: The number of times to repeat it
Usage
Return the string str repeated x times.
str = "Abc";
r = rep(str,4); // "AbcAbcAbcAbc"
r = rep(str,1); // "Abc"
r = rep(str,0); // ""
A negative or zero x will return the empty string