3 ms·
what non-letter character should succeed in both isLowercase and isUppercase?
by setr 10y ago
what non-letter character should succeed in both isLowercase and isUppercase?
- TazeTSchnitzel 10y agoNone. But letters can be neither lowercase nor uppercase.
- setr 10y agoIn which case, the function(s) should really be throwing some kind of error, since they can't reasonably be applied to the input. But checking !(isUppercase(str) || isLowercase(str)) to see if its not case-able(?) is absurd Obviously you'd instead want the function notCaseable(str).