Gaming
 

API strrep

From WoWWiki

"strrep" is a shortcut for the standard Lua library function "string.rep". They can both be used interchangeably.

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
> = ("Lua!"):rep(3)  -- naturally.
Lua!Lua!Lua!


 


This is a Lua function and documented as part of the World of Warcraft API