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

7 lines
186 B
Plaintext

fun foo(list: List<String>) {
val sum = <spot>list
.asSequence()
.map { it.calcSomething() }
.filter { it > 0 }
.sumBy { it }</spot>
}