isJavaIdentifierStart
Returns true
if this character is permissible as the first character in a Java identifier.
import kotlin.test.*
import java.util.*
fun main(args: Array<String>) {
//sampleStart
val chars = listOf('a', '_', 'β', '$', '1', '+', ';')
val (javaIdentifierStarts, notJavaIdentifierStarts) = chars.partition { it.isJavaIdentifierStart() }
println(javaIdentifierStarts) // [a, _, β, $]
println(notJavaIdentifierStarts) // [1, +, ;]
//sampleEnd
}