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