rept
|
The rept function creates a new String of repeating characters from the
characters of the original String.
Usage The rept function is used to create a new String consisting of the
repeated characters of the original String. The number of times the
characters of the original String is repeated depends on the
user specified integer value. The rept function is similar to the substitute function, except
that substitute replaces any or all of the occurrences of the specified
substring whereas rept function repeats the whole String creating a new String
with repeated characters.
(rept text count) The result String after the rept has been done
Expression:
Arguments
Name
Type
Description Argument: text String or Text
Any String or Text that you want to repeat. Argument: count Integer
A positive number specifying the number of times to repeat the text.
If count is 0, rept returns "" If count is a real value, the fraction part is ignored.
Returns:
Here are a number of links to Lambda coding examples which contain this instruction in various use cases.
Here are the links to the data types of the function arguments.
String | Text | Integer |
Here are also a number of links to functions having arguments with any of these data types.
Analytic Information Server (AIS)AIS Component Systems
|