Supported "lastOrNull" and "any" without break in the loop
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
fun foo(list: List<String>) {
|
||||
<caret>val result: String? = list.lastOrNull { it.length > 0 }
|
||||
}
|
||||
Reference in New Issue
Block a user