Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
0801cc12da5af28d8009eb66d070f37079ab755d
/
.
/
idea
/
testData
/
intentions
/
loopToCallChain
/
range.kt
blob: 9da786ec5abc2c35604e033dd2e31cc7f975658f [
file
] [
log
] [
blame
]
// WITH_RUNTIME
// INTENTION_TEXT: "Replace with 'filter{}'"
// IS_APPLICABLE_2: false
import
java
.
util
.*
fun foo
():
List
<
Int
>
{
val result
=
ArrayList
<
Int
>()
<caret>
for
(
i
in
1.
.
10
)
{
if
(
i
%
3
==
0
)
{
result
.
add
(
i
)
}
}
return
result
}