static <A> L<A> iteratorToList(Iterator<A> i) { new L<A> l; while (i.hasNext()) l.add(i.next()); ret l; }