static L dropAfter(A a, L l) { int n = l(l); for i to n: if (eq(a, l.get(i))) ret takeFirst(l, i); ret l; }