static L indicesOfAny(L l, Set set) { new L x; if (nempty(set)) for i over l: if (set.contains(l.get(i))) x.add(i); ret x; }