Files
kotlin-fork/idea/resources/intentionDescriptions/LoopToLazyCallChainIntention/before.kt.template
T
2016-08-16 17:38:17 +03:00

9 lines
174 B
Plaintext

fun foo(list: List<String>) {
val sum = 0
<spot>for (s in list) {
val x = s.calcSomething()
if (x > 0) {
sum += x
}
}</spot>
}