33fd82cf45
Replaces an expression of the form “for (i in list) { … }” with an
expression of the form “list.forEach { i -> … }”
8 lines
89 B
Kotlin
8 lines
89 B
Kotlin
fun foo() {
|
|
val list = 1..4
|
|
|
|
<caret>for (x in list) {
|
|
x
|
|
x
|
|
}
|
|
} |