LastExceed
10/26/2021, 10:32 PM.uppercase()LastExceed
10/26/2021, 10:34 PMfun String.foo() = this[0].uppercase() + drop(1) , is that already the best it can be ?Scott
10/26/2021, 10:38 PM"kotlin".replaceFirstChar { it.uppercase() }LastExceed
10/26/2021, 10:38 PMephemient
10/26/2021, 11:04 PM.capitalize() extension is .replaceFirstChar { it.titlecase() }, not .uppercase(), because it does make a difference: https://pl.kotl.in/NbGTR5LaB
'ß'.uppercase() == "SS"
'ß'.titlecase() == "Ss"