5 lines
155 B
Kotlin
Vendored
5 lines
155 B
Kotlin
Vendored
data class XY(val x: String, val y: String)
|
|
|
|
fun convert(xy: XY, foo: (XY) -> String) = foo(xy)
|
|
|
|
fun foo(xy: XY) = convert(xy) { <caret>it -> it.x + it.y } |