8 lines
253 B
Plaintext
Vendored
8 lines
253 B
Plaintext
Vendored
// WITH_RUNTIME
|
|
// INTENTION_TEXT: "Replace with 'flatMap{}.firstOrNull{}'"
|
|
fun foo(list: List<String>): String? {
|
|
val <caret>result: String? = list
|
|
.flatMap { it.lines() }
|
|
.firstOrNull { it.isNotBlank() }
|
|
return result
|
|
} |