mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 08:31:26 +00:00
8 lines
132 B
Kotlin
Vendored
8 lines
132 B
Kotlin
Vendored
var collector: String = ""
|
|
set(it) { field = field + it }
|
|
|
|
fun append(s: String): String {
|
|
collector = s;
|
|
return collector;
|
|
}
|