FANDOM


m
Line 10: Line 10:
 
Lua
 
Lua
   
[[Category:API Functions|strrep]]
+
----
[[Category:API String Functions|strrep]]
+
{{WoW API}}

Revision as of 05:57, January 4, 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

Template:WoW API

Community content is available under CC-BY-SA unless otherwise noted.