Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
0801cc12da5af28d8009eb66d070f37079ab755d
/
.
/
idea
/
testData
/
intentions
/
loopToCallChain
/
maxMin
/
KT14210.kt.after2
blob: 1c3db9b7e1288e15f08b32c88147c7e775b911fe [
file
] [
log
] [
blame
]
// 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
}