10 lines
200 B
Kotlin
Vendored
10 lines
200 B
Kotlin
Vendored
// WITH_RUNTIME
|
|
|
|
data class XY(val x: String, val y: String)
|
|
fun test(xys: Array<XY>, base: XY) {
|
|
for (<caret>xy in xys) {
|
|
if (xy.x == base.x) {
|
|
println(xy.y)
|
|
}
|
|
}
|
|
} |