Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
ec80c21fd118667fdb2e851da7eea5d76d95eb52
/
.
/
idea
/
testData
/
intentions
/
loopToCallChain
/
KT14191.kt.after2
blob: 3553d767776bbb96ed2fc7161be8cf5d3b38f54b [
file
]
// 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
.
asSequence
()
.
filterNotNull
()
.
sum
()
return
r
}