arrays.concat

支持的语言:
arrays.concat(string_array, string_array)

说明

通过复制原始字符串数组中的元素来返回新的字符串数组。

形参数据类型

ARRAY_STRINGSARRAY_STRINGS

返回类型

ARRAY_STRINGS

代码示例

示例 1

以下示例连接了两个不同的字符串数组。

arrays.concat(["test1", "test2"], ["test3"]) = ["test1", "test2", "test3"]
示例 2

以下示例将数组与空字符串串联。

arrays.concat([""], [""]) = ["", ""]
示例 3

以下示例连接了空数组。

arrays.concat([], []) = []