arrays.concat
arrays.concat(string_array, string_array)
说明
通过复制原始字符串数组中的元素,返回新的字符串数组。
形参数据类型
ARRAY_STRINGS,ARRAY_STRINGS
返回值类型
ARRAY_STRINGS
代码示例
示例 1
以下示例串联了两个不同的字符串数组。
arrays.concat(["test1", "test2"], ["test3"]) = ["test1", "test2", "test3"]
示例 2
以下示例将数组与空字符串串联。
arrays.concat([""], [""]) = ["", ""]
示例 3
以下示例串联了空数组。
arrays.concat([], []) = []