Libraryless. Click here for Pure Java version (45L/1K).
1 | static <A> L<A> fromSimplyLinkedList(SimplyLinkedList<A> sll) { |
2 | new L<A> l; |
3 | while (sll != null) { |
4 | l.add(sll.head); |
5 | sll = sll.tail; |
6 | } |
7 | ret l; |
8 | } |
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: | #1023794 |
Snippet name: | fromSimplyLinkedList |
Eternal ID of this version: | #1023794/1 |
Text MD5: | e4215bd8320959a0e043872f87915baf |
Transpilation MD5: | 5e153338853dfacc294dc5e61635e974 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-07-09 03:25:08 |
Source code size: | 164 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 194 / 274 |
Referenced in: | [show references] |