8 lines
180 B
Plaintext
Vendored
8 lines
180 B
Plaintext
Vendored
// WITH_RUNTIME
|
|
// INTENTION_TEXT: "Replace with 'sumBy{}'"
|
|
// IS_APPLICABLE_2: false
|
|
fun foo(list: List<String>): Int {
|
|
val <caret>l = list.sumBy { it.length }
|
|
return l
|
|
}
|