for ignoring the case rather than lowerCasing everything.
a
Alowaniak
01/23/2019, 12:10 PM
It is possible to reference earlier parameters so you could do
fun foo(inUnkownCase: String, inLowerCase: String = inUnkownCase.toLowerCase())
but you shouldn't want to do that since that default parameter could be overridden or w/e anyway
Personally I don't like it that parameters are final, because imo it would make sense to do such transformation at start of method on same var