static int smallestList_l(O l) { if (l == null) ret 0; if (l cast Pair) ret 2; if (l cast Triple) ret 3; if (l cast O[]) ret l(l); ret 1; }