min
Returns the smallest character.
@JvmName(name = "minOrThrow")fun CharSequence.min(): Char(source)
fun main() {
val text = "kotlin"
val smallest = text.min() // returns 'i'
println("The smallest character is: $smallest")
}
Returns the smallest character.
@JvmName(name = "minOrThrow")fun CharSequence.min(): Char(source)
fun main() {
val text = "kotlin"
val smallest = text.min() // returns 'i'
println("The smallest character is: $smallest")
}