Supported mapIndexedTo and mapIndexedNotNullTo
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
// 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 }
|
||||
}
|
||||
Reference in New Issue
Block a user