Supported indexOfFirst/indexOfLast
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
// WITH_RUNTIME
|
||||
// INTENTION_TEXT: "Replace with 'indexOfFirst{}'"
|
||||
fun foo(list: List<String>) {
|
||||
val <caret>result = list.indexOfFirst { it.length > 0 }
|
||||
}
|
||||
Reference in New Issue
Block a user