replicate
Syntax
replicate(<text>, <count>)
replicate("Bar", 5) -- "BarBarBarBarBar"
replicate("Once", 1) -- "Once"
replicate("LongTextNobodyWants", 0) -- ""
Explanation
This function takes the given string text
and returns count
copies of it. That is, if you call replicate("Foo", 3)
it returns "FooFooFoo"
.