Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
0801cc12da5af28d8009eb66d070f37079ab755d
/
.
/
idea
/
testData
/
intentions
/
loopToCallChain
/
lastOrNull_ifAssign.kt.after
blob: 4f83ce39e0e3f98f46a781973764dd6ec1dd53aa [
file
] [
log
] [
blame
]
// WITH_RUNTIME
// INTENTION_TEXT: "Replace with 'lastOrNull{}'"
// IS_APPLICABLE_2: false
fun foo
(
list
:
List
<
String
>)
{
val
<caret>
result
:
String
?
=
list
.
lastOrNull
{
it
.
length
>
0
}
}