Libraryless. Click here for Pure Java version (2496L/16K).
static <A> L<A> cloneAndClearList(Cl<A> l) { L<A> l2 = cloneList(l); l.clear(); ret l2; }
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1009575 |
Snippet name: | cloneAndClearList |
Eternal ID of this version: | #1009575/2 |
Text MD5: | 7e36a138920752230679fc3c50b0df86 |
Transpilation MD5: | 6d8616143f3033d40b46c46acbcb213e |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-08-16 17:50:48 |
Source code size: | 99 bytes / 5 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 522 / 627 |
Version history: | 1 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1011421 - cloneAndClear - synonym of cloneAndClearList #1019907 - cloneAndClearAsLinkedList #1030047 - syncCloneAndClearList |