static int[] indicesOf_array(L l, A a) { if (l == null) null; ifclass IContentsIndexedList if (l cast IContentsIndexedList) ret i.indicesOf(a); endif new L x; for (int i = 0; i < l(l); i++) if (eq(l.get(i), a)) x.add(i); ret toIntArray(x); }