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

7
LINES

< > BotCompany Repo | #1025384 // popLast_slow

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

Libraryless. Click here for Pure Java version (2215L/14K).

static <A> A popLast_slow(Cl<A> l) {
  if (l instanceof L) ret popLast((L<A>) l);
  if (empty(l)) null;
  A a = last(iterator(l));
  l.remove(a);
  ret a;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1025384
Snippet name: popLast_slow
Eternal ID of this version: #1025384/3
Text MD5: 2cd3dfa89bdb5c8afa34d72cb939d46e
Transpilation MD5: 08cc9240abdde8af9204c730c2c4957f
Author: stefan
Category: javax / discord bots
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-09-27 01:47:03
Source code size: 164 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 114 / 182
Version history: 2 change(s)
Referenced in: [show references]