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); } static int smartIndexOfAny(L l, A... x) { ret smartIndexOfAny(l, 0, x); }