Difference between revisions of "String.rep"
From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight") |
|||
Line 5: | Line 5: | ||
=== Description === | === Description === | ||
Returns a string that is the concatenation of n copies of the string s. | Returns a string that is the concatenation of n copies of the string s. | ||
− | < | + | <syntaxhighlight lang="lua"> |
(string) = string.rep(s,n) | (string) = string.rep(s,n) | ||
</source> | </source> |
Revision as of 14:31, 13 July 2023
Available since: Gideros 2011.6
Class: string
Description
Returns a string that is the concatenation of n copies of the string s. <syntaxhighlight lang="lua"> (string) = string.rep(s,n) </source>
Parameters
s: (string) string to copy
n: (number) how many times to copy a string
Return values
Returns (string) concatenated by n copies