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

5 lines
70 B
Plaintext

fun foo() {
<spot>for (x in list) {
x.bar()
}</spot>
}