static <A> SimplyLinkedList<A> toSimplyLinkedList(L<A> l) { SimplyLinkedList<A> sll = null; for (int i = l(l)-1; i >= 0; i--) sll = SimplyLinkedList.cons(l.get(i), sll); ret sll; }
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: | 182 / 217 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1023797 - arrayToSimplyLinkedList |