WoW:API strrep: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(Use Lua/Libshortcut template. Change category from "LUA Functions" to "Lua functions".) |
||
| Line 1: | Line 1: | ||
{{:Lua/Libshortcut|strrep|string.rep}} | |||
string.rep(s, n) | string.rep(s, n) | ||
| Line 10: | Line 11: | ||
Lua | Lua | ||
{{LUA}} | |||
{{ | |||
Revision as of 12:16, 26 May 2006
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