Option to use 'asSequence()'
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
// WITH_RUNTIME
|
||||
// INTENTION_TEXT: "Replace with 'firstOrNull{}'"
|
||||
// IS_APPLICABLE_2: false
|
||||
fun foo(array: Array<String>): String? {
|
||||
<caret>return array.firstOrNull { it.isNotBlank() }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user