Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
0801cc12da5af28d8009eb66d070f37079ab755d
/
.
/
idea
/
testData
/
intentions
/
loopToCallChain
/
sum
/
sumByIntsIntoLong.kt.after2
blob: ddf3858af3a201c7c09bbb722af3c5b789cb43af [
file
] [
log
] [
blame
]
// WITH_RUNTIME
// INTENTION_TEXT: "Replace with 'map{}.sum()'"
// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.sum()'"
fun foo
(
list
:
List
<
Int
>):
Long
{
val
<caret>
s
=
list
.
asSequence
()
.
map
{
it
.
toLong
()
}
.
sum
()
return
s
}