Action
Replicates a string the specified number of times.
Syntax
sNew = Replicate (sOrig, iCopies)
Variable
|
Description
|
sNew
|
The returned copies. STRING.
|
sOrig
|
The string to replicate. STRING.
|
iCopies
|
The number of copies to concatenate and return. INTEGER.
|
Notes
Replicate returns a string made up of iCopies copies of the input string
sOrig, concatenated. If
sOrig is an empty string
(""), Replicate returns an empty string.
Example
Print ("Four A's -> {Replicate ("A", 4)}.")
// Prints: Four A's -> AAAA