PP.String.repeat(pattern: String, count: Number, sep: String);
pattern. Pattern to repeat.
count. Number of repetitions.
sep. Separator between repeating substrings. An optional parameter; by default an empty string is substituted.
The repeat method repeats a string desired number of times, adding a separator between repeating substrings if necessary.
This method returns a String-type value.
The example of use is given in the with description of the String.getRandom method.
See also: