isLetter

JVM
Native
1.0
fun Char.isLetter(): Boolean
For JVM

Returns true if this character is a letter.

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

fun main(args: Array<String>) {
//sampleStart
val chars = listOf('a', 'β', '+', '1')
val (letters, notLetters) = chars.partition { it.isLetter() }
println(letters) // [a, β]
println(notLetters) // [+, 1]
//sampleEnd
}
For Native

Returns true if this character is a letter.