11a3482970
#KT-38632 Fixed
10 lines
271 B
Plaintext
Vendored
10 lines
271 B
Plaintext
Vendored
// WITH_RUNTIME
|
|
// INTENTION_TEXT: "Replace with 'filter{}.max()'"
|
|
// INTENTION_TEXT_2: "Replace with 'asSequence().filter{}.max()'"
|
|
fun f(list: List<Int>) {
|
|
val <caret>result = list
|
|
.asSequence()
|
|
.filter { it % 2 == 0 }
|
|
.max()
|
|
?: -1
|
|
} |