11a3482970
#KT-38632 Fixed
8 lines
289 B
Plaintext
Vendored
8 lines
289 B
Plaintext
Vendored
// WITH_RUNTIME
|
|
// INTENTION_TEXT: "Replace with 'filter{}.mapTo(){}'"
|
|
// INTENTION_TEXT_2: "Replace with 'asSequence().filter{}.mapTo(){}'"
|
|
fun foo(list: List<String>, target: MutableList<Int>) {
|
|
<caret>list
|
|
.filter { it.length > 0 }
|
|
.mapTo(target) { it.hashCode() }
|
|
} |