33fd82cf45
Replaces an expression of the form “for (i in list) { … }” with an
expression of the form “list.forEach { i -> … }”
7 lines
82 B
Plaintext
7 lines
82 B
Plaintext
fun foo() {
|
|
val list = 1..4
|
|
val i = 0
|
|
|
|
list.forEach { i -> i }
|
|
i
|
|
} |