W3cubDocs

/Kotlin

isLowerCase

Platform and version requirements: JVM (1.0), Native (1.3)
fun Char.isLowerCase(): Boolean
For JVM

Returns true if this character is lower case.

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

fun main(args: Array<String>) {
//sampleStart
val chars = listOf('a', 'λ', 'A', '1', '+')
val (lowerCases, notLowerCases) = chars.partition { it.isLowerCase() }
println(lowerCases) // [a, λ]
println(notLowerCases) // [A, 1, +]
//sampleEnd
}
For Native

Returns true if this character is lower case.

© 2010–2020 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.text/is-lower-case.html