Option to use 'asSequence()'
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
// WITH_RUNTIME
|
||||
// INTENTION_TEXT: "Replace with 'mapIndexedNotNullTo(){}'"
|
||||
// IS_APPLICABLE_2: false
|
||||
fun foo(list: List<String?>, target: MutableList<Int>) {
|
||||
<caret>for ((index, s) in list.withIndex()) {
|
||||
val length = s?.substring(index)?.length ?: continue
|
||||
|
||||
Reference in New Issue
Block a user