Files
kotlin-fork/idea/testData/intentions/convertToForEachFunctionCall/noStatements.kt.after
T
Pradyoth Kukkapalli 33fd82cf45 New Intention: Replace for loop with forEach
Replaces an expression of the form “for (i in list) { … }” with an
expression of the form “list.forEach { i -> … }”
2014-05-07 14:01:37 +04:00

5 lines
60 B
Plaintext

fun foo() {
val list = 1..4
list.forEach { i -> }
}