WoW:API strrep

From AddOn Studio
Revision as of 02:50, 14 February 2005 by WoWWiki>Sparsematrix
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
string.rep(s, n)

Generate a string which is n copies of the string passed concatenated together.

> = string.rep("Lua ",5)
Lua Lua Lua Lua Lua
> = string.rep("Lua\n",3)
Lua
Lua
Lua