Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
0801cc12da5af28d8009eb66d070f37079ab755d
/
.
/
idea
/
testData
/
intentions
/
loopToCallChain
/
KT14191.kt.after
blob: 66e67079fec4040724d290b722323d6562452909 [
file
] [
log
] [
blame
]
// WITH_RUNTIME
// INTENTION_TEXT: "Replace with 'filterNotNull().sum()'"
// INTENTION_TEXT_2: "Replace with 'asSequence().filterNotNull().sum()'"
fun f
(
list
:
List
<
Int
?>):
Int
{
val r
=
list
.
filterNotNull
()
.
sum
()
return
r
}