a
-.txt
h
I don’t think it is possible. also I would use
string.contains(otherString, true)
for ignoring the case rather than lowerCasing everything.
a
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
👍 2
a
Thanks guys!