Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
0801cc12da5af28d8009eb66d070f37079ab755d
/
.
/
idea
/
testData
/
intentions
/
loopToCallChain
/
map
/
mapIndexedTo.kt
blob: e45443c89b5005b9bbee9f03da873f4842718468 [
file
] [
log
] [
blame
]
// WITH_RUNTIME
// INTENTION_TEXT: "Replace with 'mapIndexedTo(){}'"
// IS_APPLICABLE_2: false
fun foo
(
list
:
List
<
String
>,
target
:
MutableList
<
Int
>)
{
<caret>
for
((
index
,
s
)
in
list
.
withIndex
())
{
target
.
add
(
s
.
hashCode
()
*
index
)
}
}