←
partitionzipコレクション操作
2つのリストをPairリストに合わせます。
構文
listA.zip(listB)使用例
下記の値を入力するとサンプルに即時反映されます。
val→listOf→println→zip→one→two→three→val a = listOf(1, 2, 3)
val b = listOf("one", "two", "three")
println(a.zip(b)) // [(1, one), (2, two), (3, three)]