val numbers1 = arrayOf(1, 2, 3, 4, 5) val numbers2 = listOf(3, 4, 5, 6, 7) // 查找两个数组的并集 val union = numbers1.union(numbers2) // 输出:两个数组的并集: [1, 2, 3, 4, 5, 6, 7] _console.log("两个数组的并集: ", union)