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