zipWithIndex를 사용하는 대신 수동으로 색인을 압축하는 경우를 보고합니다.

예:


  var seq: Seq[Int]
  seq.zip(seq.indices)

빠른 수정 적용 후:


  var seq: Seq[Int]
  seq.zipWithIndex