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