sS beforeSlash_orAll(S s) { ret takeFirst(smartIndexOf(s, '/'), s); }