isLetter

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

Returns true if this character is a letter.

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

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.