Supported forEachIndexed
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
// WITH_RUNTIME
|
||||
// INTENTION_TEXT: "Replace with 'forEachIndexed{}'"
|
||||
fun foo(list: List<String>) {
|
||||
<caret>for ((index, s) in list.withIndex()) {
|
||||
println(s.hashCode() * index)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user