Wikia

WoWWiki

Watchlist Recent changes

API strrep

Main Menue



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!

Pages on WoWWiki

94,149pages on
this wiki
Advertisement | Your ad here

Latest Photos

Add a Photo
55,612photos on this wiki
See more >

Recent Wiki Activity

See more >

Recent Questions

Around Wikia's network

Random Wiki