String.rep: Difference between revisions

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),..."
 
m Text replacement - "</source>" to "</syntaxhighlight>"
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
__NOTOC__
__NOTOC__
'''Available since:''' Gideros 2011.6<br/>
'''Available since:''' Gideros 2011.6<br/>
'''Class:''' [[string]]<br/>
=== 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.
<source lang="lua">
<syntaxhighlight lang="lua">
(string), = string.rep(sn,)
(string) = string.rep(s,n)
</source>
</syntaxhighlight>
'''s:''' (string) string to copy ''''''<br/>
 
'''n:''' (number) how many times to copy a string ''''''<br/>
=== Parameters ===
'''s''': (string) string to copy<br/>
'''n''': (number) how many times to copy a string<br/>
 
=== Return values ===
'''Returns''' (string) concatenated by n copies<br/>
'''Returns''' (string) concatenated by n copies<br/>
{{String}}

Latest revision as of 13:33, 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.

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

Parameters

s: (string) string to copy
n: (number) how many times to copy a string

Return values

Returns (string) concatenated by n copies