sS mapLike filterChars(O pred, S s) { if (s == null) null; new StringBuilder buf; int n = l(s); char c; for i to n: if (isTrue(callF(pred, c = s.charAt(i)))) buf.append(c); ret str(buf); }