12 lines
236 B
Kotlin
Vendored
12 lines
236 B
Kotlin
Vendored
// !WITH_NEW_INFERENCE
|
|
// FULL_JDK
|
|
|
|
import java.util.stream.Collectors
|
|
import java.util.stream.IntStream
|
|
|
|
fun main() {
|
|
val xs = IntStream.range(0, 10).mapToObj { it.toString() }
|
|
.collect(Collectors.toList())
|
|
xs[0]
|
|
}
|