Home  Contents

string.rep

String Lua Commands

SYNOPSIS

string.rep(s,n)

DESCRIPTION

Returns a string that is the concatenation of n copies of the string s.

RETURN VALUE

Returns a String.

EXAMPLE

print(string.rep("test",5))
testtesttesttesttest