Fandom

WoWWiki

API strrep

104,755pages on
this wiki
Add New Page
Talk0 Share
WoW Lua

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

string.rep(s, n)
strrep(s, n)

Examples Edit

> = string.rep("Lua ",5)
Lua Lua Lua Lua Lua
> = string.rep("Lua\n",3)
Lua
Lua
Lua
> = ("Fire! "):rep(3)  -- naturally.
Fire! Fire! Fire!

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.