count
Returns the length of this char sequence.
inline fun CharSequence.count(): Int(source)
fun main() {
val text = "Hello, Kotlin!"
val length = text.count()
println("The length of \"$text\" is $length.")
}
Returns the length of this char sequence.
inline fun CharSequence.count(): Int(source)
fun main() {
val text = "Hello, Kotlin!"
val length = text.count()
println("The length of \"$text\" is $length.")
}