plus

inline operator fun Char.plus(other: String): String(source)

Concatenates this Char and a String.

Since Kotlin

1.1

Samples

import java.util.*
import kotlin.test.*

fun main() { 
   //sampleStart 
   val value = 'a' + "bcd"
println(value) // abcd 
   //sampleEnd
}
inline operator fun Char.plus(other: String): String(source)

Concatenates this Char and a String.

Since Kotlin

1.0

Samples

import java.util.*
import kotlin.test.*

fun main() { 
   //sampleStart 
   val value = 'a' + "bcd"
println(value) // abcd 
   //sampleEnd
}