static <A> Triple<A> listToTriple(L<A> l) { ret l(l) != 3 ? null : triple(get(l, 0), get(l, 1), get(l, 2)); }