plus
Начиная с Kotlin: 1.0
inline operator fun Char.plus(other: String): String
Объединяет этот Char со String.
Примеры
import java.util.*
import kotlin.test.*
fun main() {
//sampleStart
val value = 'a' + "bcd"
println(value) // abcd
//sampleEnd
}
© 2010–2026 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.text/plus.html