1 | static <A> SimplyLinkedList<A> toSimplyLinkedList(L<A> l) { |
2 | SimplyLinkedList<A> sll = null; |
3 | for (int i = l(l)-1; i >= 0; i--) |
4 | sll = SimplyLinkedList.cons(l.get(i), sll); |
5 | ret sll; |
6 | } |
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: | #1023793 |
Snippet name: | toSimplyLinkedList |
Eternal ID of this version: | #1023793/1 |
Text MD5: | 8a9bec039866b3f411b4c87542d70f52 |
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:23:39 |
Source code size: | 195 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 181 / 216 |
Referenced in: | [show references] |