You are viewing content for 5.1 | 5.0 | 4.9 | 4.8 | 4.7 | 4.6 | 4.5 | 4.4 | 4.3 | Previous Releases


repeat

Returns a string that is a repeat of its argument.

Example

The expression

repeat('ha', 3)

will result in ‘hahaha’.

Syntax

repeat(string str, int rep)
  • str : string to repeat
  • rep : int number of times to repeat str

    Returns

    string

Description

Function repeat returns rep copies of the string specified by str.


© Incorta, Inc. All Rights Reserved.