语法作用
将指定的字符串重复N次。
XF.Str.Repeat(str:string,n:int64)
函数代码
该函数的实现代码如下:
/// 将指定的字符串重复N次
FUNCTION XF.Str.Repeat = (str:string,n:int64) => REPT(str,n)
应用示例
重复文本 "helloworld" 三次。
XF.Str.Repeat("helloworld.",3)
结果如下:
"helloworld.helloworld.helloworld."