Option to use 'asSequence()'
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
// WITH_RUNTIME
|
||||
// INTENTION_TEXT: "Replace with 'map{}.forEachIndexed{}'"
|
||||
// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.forEachIndexed{}'"
|
||||
fun foo(list: List<String>) {
|
||||
list
|
||||
.map { it.substring(1) }
|
||||
|
||||
Reference in New Issue
Block a user