val source = arrayOf("a", "b", "c", "d", "e") val destination = arrayOfNulls(10) // 将 source 数组的元素复制到 destination 数组,从 destination 的索引 2 开始,复制 source 的索引 1 到 3 的元素(不包括索引 3) source.copyInto(destination, 2, 1, 3) _console.log(destination.contentDeepToString()) // 输出:[null, null, b, c, null, null, null, null, null, null]