7 lines
218 B
Plaintext
Vendored
7 lines
218 B
Plaintext
Vendored
// WITH_RUNTIME
|
|
// INTENTION_TEXT: "Replace with 'flatMap{}.firstOrNull{}'"
|
|
fun foo(list: List<String>): String? {
|
|
<caret>return list
|
|
.flatMap { it.lines() }
|
|
.firstOrNull { !it.isBlank() }
|
|
} |