string.rep

Returns repeated copies of a string

Prototype

s = string.rep (str, n)

Description

Returns a string which is n copies of the source string concatenated together.

string.rep ("moo", 4) --> moomoomoomoo

Lua functions

Topics