Files
kotlin-fork/idea/testData/intentions/loopToCallChain/mapIndexedNotNullTo.kt.after
T
2016-08-16 17:38:07 +03:00

5 lines
222 B
Plaintext
Vendored

// WITH_RUNTIME
// INTENTION_TEXT: "Replace with 'mapIndexedNotNullTo(){}'"
fun foo(list: List<String?>, target: MutableList<Int>) {
<caret>list.mapIndexedNotNullTo(target) { index, s -> s?.substring(index)?.length }
}