报告索引的手动压缩,而不是使用 zipWithIndex。
zipWithIndex
示例:
var seq: Seq[Int] seq.zip(seq.indices)
在应用快速修复后:
var seq: Seq[Int] seq.zipWithIndex