withIndex

返回一个包含此数组中所有元素及其索引的新可迭代对象。

参考 kotlin.collections.withIndex

Return

一个包含此数组中所有元素及其索引的新可迭代对象。