https://kotlinlang.org logo
#announcements
Title
# announcements
o

orangy

02/16/2016, 10:38 PM
Copy code
fun x(s: String?) = when (s?.length) {
    1 -> s.toLowerCase() // error
    else -> s
}