299097d112
(cherry picked from commit 5232af5)
8 lines
161 B
Plaintext
Vendored
8 lines
161 B
Plaintext
Vendored
// WITH_RUNTIME
|
|
|
|
fun List<Int>.transform(x: Int = 0, f: (Int) -> Int) = map { f(it + x) }
|
|
|
|
fun bar(x: Int) = x * x
|
|
|
|
val y = listOf(1, 2, 3).transform(f = ::bar)
|