static int smartIndexOfAny(L l, int i, A... x) { while (i < l(l)) if (eqOneOf(l.get(i), x)) ret i; else ++i; ret l(l); }