static bool endsWith(S a, S b) { ret a != null && a.endsWith(b); } static bool endsWith(S a, char c) { ret nempty(a) && lastChar(a) == c; }