Files
kotlin-fork/idea/testData/intentions/convertToForEachLoop/explicitFunctionLiteral.kt.after
T
Pradyoth Kukkapalli dbb28c571b New Intention Action: Replace a call to forEach function with for loop.
Replaces an expression of form x.forEach { … } with for (a in x) { … }.
2014-05-07 14:00:50 +04:00

8 lines
82 B
Plaintext

// WITH_RUNTIME
fun foo() {
val x = 1..4
for (y in x) {
y
}
}