static L grep(S pattern, L lines) { new L l; for (S s : lines) if (s.indexOf(pattern) >= 0) l.add(s); return l; }