Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

13
LINES

< > BotCompany Repo | #1032651 // removeLastAndReturnList

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (3825L/22K).

static <A, B extends L<A>> B removeLastAndReturnList(B l) {
  removeLast(l);
  ret l;
}

static <A, B extends L<A>> B removeLastAndReturnList(B l, int n) {
  removeLast(l, n);
  ret l;
}

static <A, B extends L<A>> B removeLastAndReturnList(int n, B l) {
  ret removeLastAndReturnList(l, n);
}

Author comment

Began life as a copy of #1002305

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1032651
Snippet name: removeLastAndReturnList
Eternal ID of this version: #1032651/4
Text MD5: cb63d73958e0e06eb8c59daece73eb41
Transpilation MD5: b9c6109dc6b2fe2dbfe111f62905760d
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-09-30 04:46:11
Source code size: 305 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 139 / 200
Version history: 3 change(s)
Referenced in: [show references]