static bool subListsEqual(L a, int ia, L b, int ib, int l) { while (l-- > 0) if (neq(a.get(ia++), b.get(ib++))) false; true; }