New Intention Action: Replace a call to forEach function with for loop.

Replaces an expression of form x.forEach { … } with for (a in x) { … }.
This commit is contained in:
Pradyoth Kukkapalli
2014-04-07 11:47:58 -04:00
committed by Mikhael Bogdanov
parent bd056d037f
commit dbb28c571b
26 changed files with 330 additions and 2 deletions
@@ -0,0 +1,6 @@
// WITH_RUNTIME
fun main() {
val x = 1..4
<caret>x.reverse().forEach { it }
}