ES|QL REPEAT function
string- String expression.
number-
Number times to repeat.
Returns a string constructed by concatenating string with itself the specified number of times.
| string | number | result |
|---|---|---|
| keyword | integer | keyword |
| text | integer | keyword |
ROW a = "Hello!"
| EVAL triple_a = REPEAT(a, 3)
| a:keyword | triple_a:keyword |
|---|---|
| Hello! | Hello!Hello!Hello! |