static > B removeLastAndReturnList(B l) { removeLast(l); ret l; } static > B removeLastAndReturnList(B l, int n) { removeLast(l, n); ret l; } static > B removeLastAndReturnList(int n, B l) { ret removeLastAndReturnList(l, n); }