static A liftLast(L l) { if (l.isEmpty()) ret null; int i = l(l)-1; A a = l.get(i); l.remove(i); ret a; }