10 lines
246 B
Plaintext
Vendored
10 lines
246 B
Plaintext
Vendored
// WITH_RUNTIME
|
|
import java.util.ArrayList
|
|
|
|
fun foo(list: List<String>): List<Int> {
|
|
val result = ArrayList<Int>()
|
|
list
|
|
.filter { it.length > result.size }
|
|
.forEach { result.add(it.hashCode()) }
|
|
return result
|
|
} |