Files
kotlin-fork/idea/testData/intentions/destructuringInLambda/fold.kt.after
T

5 lines
134 B
Plaintext
Vendored

// WITH_RUNTIME
data class XY(val x: String, val y: String)
fun foo(list: List<XY>) = list.fold("") { prev, (x, y) -> prev + x + y }