def numbers = $objectWrappers.wrap($arrays.arrayOf($plugins.loadClass("java.lang.Integer"), 1, 2, 3)) def letters = $iterables.listOf("a", "b", "c") // 将两个数组的元素按顺序配对,配对后的元素: [(1, a), (2, b), (3, c)] numbers.zip(letters) { o1, o2 -> o1 + o2 }.forEach { $console.log(it) }