8 lines
174 B
Kotlin
Vendored
8 lines
174 B
Kotlin
Vendored
fun <T, R> List<T>.myMap(block: (T) -> R): List<R> = null!!
|
|
|
|
fun test_1() {
|
|
class Data(val x: Int)
|
|
val datas: List<Data> = null!!
|
|
val xs = datas.myMap(Data::x)
|
|
}
|