static <A> LinkedList<A> asLinkedList(Iterable<A> s) { if (s cast LinkedList) ret s; new LinkedList l; if (s != null) for (A a : s) l.add(a); ret l; }
Began life as a copy of #1000999
download show line numbers debug dex old transpilations
Travelled to 10 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1019910 |
Snippet name: | asLinkedList |
Eternal ID of this version: | #1019910/1 |
Text MD5: | e4dd6029ead111be9e032832ea042717 |
Author: | stefan |
Category: | |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-11-30 21:45:21 |
Source code size: | 175 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 373 / 402 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |