6 lines
248 B
Plaintext
Vendored
6 lines
248 B
Plaintext
Vendored
// WITH_RUNTIME
|
|
// INTENTION_TEXT: "Replace with 'mapIndexedNotNullTo(){}'"
|
|
// IS_APPLICABLE_2: false
|
|
fun foo(list: List<String?>, target: MutableList<Int>) {
|
|
<caret>list.mapIndexedNotNullTo(target) { index, s -> s?.substring(index)?.length }
|
|
} |