33fd82cf45
Replaces an expression of the form “for (i in list) { … }” with an
expression of the form “list.forEach { i -> … }”
6 lines
82 B
Kotlin
6 lines
82 B
Kotlin
// WITH_RUNTIME
|
|
fun main() {
|
|
<caret>for (x in 1 rangeTo 2) {
|
|
x
|
|
}
|
|
} |