Nyall Dawson 95e8d14677 Add 'repeat' expression function
Repeats a given string a specified number of times.

Eg

    repeat('Hello', 3) -> 'HelloHelloHello'
2025-04-06 15:45:27 +10:00

18 lines
398 B
Plaintext

{
"name": "repeat",
"type": "function",
"groups": ["String"],
"description": "Repeats a string a specified number of times.",
"arguments": [{
"arg": "string",
"description": "string to repeat"
}, {
"arg": "number",
"description": "number of times to repeat string"
}],
"examples": [{
"expression": "repeat('Hello', 3)",
"returns": "'HelloHelloHello'"
}]
}