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

5
LINES

< > BotCompany Repo | #1019907 // cloneAndClearAsLinkedList

JavaX fragment (include)

static <A> LinkedList<A> cloneAndClearAsLinkedList(L<A> l) {
  LinkedList l2 = cloneLinkedList(l);
  l.clear();
  ret l2;
}

Author comment

Began life as a copy of #1009575

download  show line numbers  debug dex  old transpilations   

Travelled to 9 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1019907
Snippet name: cloneAndClearAsLinkedList
Eternal ID of this version: #1019907/1
Text MD5: 364cbb2e180bda0dff3653d52274e5d7
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-11-30 21:33:21
Source code size: 127 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 307 / 336
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)