what’s the difference between: ``` val toCapitalCa...
# announcements
n
what’s the difference between:
Copy code
val toCapitalCase = fun String.() = when {
    length < 2 -> toUpperCase()
    else -> this[0].toUpperCase() + substring(1).toLowerCase()
}
and
Copy code
fun String.toCapitalCase() = when {
    length < 2 -> toUpperCase()
    else -> this[0].toUpperCase() + substring(1).toLowerCase()
}