Difference between revisions of "String.rep"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2011.6<br/> === Description === Returns a string that is the concatenation of n copies of the string s. <source lang="lua"> (string),...")
 
Line 4: Line 4:
 
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.
 
<source lang="lua">
 
<source lang="lua">
(string), = string.rep(sn,)
+
(string) = string.rep(s,n)
 
</source>
 
</source>
'''s:''' (string) string to copy ''''''<br/>
+
'''s''': (string) string to copy ''''''<br/>
'''n:''' (number) how many times to copy a string ''''''<br/>
+
'''n''': (number) how many times to copy a string ''''''<br/>
 
'''Returns''' (string) concatenated by n copies<br/>
 
'''Returns''' (string) concatenated by n copies<br/>

Revision as of 11:17, 23 August 2018

Available since: Gideros 2011.6

Description

Returns a string that is the concatenation of n copies of the string s.

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

's: (string) string to copy '
'n: (number) how many times to copy a string '
Returns (string) concatenated by n copies