Files
kotlin-fork/idea/testData/intentions/loopToCallChain/map/mapIndexedNotNullTo.kt.after
T
2016-08-23 22:47:42 +03:00

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 }
}