Files
kotlin-fork/idea/resources/intentionDescriptions/ConvertToForEachFunctionCallIntention/after.kt.template
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

3 lines
47 B
Plaintext

fun foo() {
list.forEach { x -> x.bar() }
}