Files
kotlin-fork/idea/testData/intentions/loopToCallChain/assignMap.kt.after
T
2016-08-16 17:38:02 +03:00

10 lines
250 B
Plaintext
Vendored

// WITH_RUNTIME
// INTENTION_TEXT: "Replace with 'filter{}.map{}'"
import java.util.ArrayList
fun foo(list: List<String>): List<Int> {
val result = list
.filter { it.length > 0 }
.map { it.hashCode() }
return result
}