withIndex

返回一个包含数组元素及其索引的 Iterable.

参考 kotlin.collections.withIndex

Return

包含数组元素及其索引的 Iterable