Kotlin 标准库中, 这个操作使用 zip() 扩展函数实现. 我们可以对一个集合或数组调用 zip() 函数, 参数是另一个集合或数组, 返回值是 Pair 对象构成的 List .
確定! 回上一頁