static int smartIndexOfMulti(L l, L sub, int start) { int i = l(l); for (A a : sub) i = min(i, smartIndexOf(l, a, start)); ret i; }