String.rep: Difference between revisions

From GiderosMobile
No edit summary
No edit summary
Line 1: Line 1:
__NOTOC__
__NOTOC__
'''Available since:''' Gideros 2011.6<br/>
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
=== Description ===
=== <translate>Description</translate> ===
<translate>Returns a string that is the concatenation of n copies of the string s.</translate>
<translate>Returns a string that is the concatenation of n copies of the string s.</translate>
<source lang="lua">
<source lang="lua">
(string) = string.rep(s,n)
(string) = string.rep(s,n)
</source>
</source>
=== Parameters ===
=== <translate>Parameters</translate> ===
'''s''': (string) <translate>string to copy</translate> <br/>
'''s''': (string) <translate>string to copy</translate> <br/>
'''n''': (number) <translate>how many times to copy a string</translate> <br/>
'''n''': (number) <translate>how many times to copy a string</translate> <br/>
=== Return values ===
=== <translate>Return values</translate> ===
'''Returns''' (string) <translate>concatenated by n copies</translate><br/>
'''<translate>Returns</translate>''' (string) <translate>concatenated by n copies</translate><br/>

Revision as of 06:30, 24 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)

Parameters

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

Return values

Returns (string) concatenated by n copies