8 lines
198 B
Plaintext
Vendored
8 lines
198 B
Plaintext
Vendored
// WITH_RUNTIME
|
|
// INTENTION_TEXT: "Replace with 'sumByDouble{}'"
|
|
// IS_APPLICABLE_2: false
|
|
fun foo(list: List<Float>): Double {
|
|
val <caret>s = list.sumByDouble { it.toDouble() }
|
|
return s
|
|
}
|