static <A> L<A> moveFirstToEnd(L<A> l) { if (l(l) < 2) ret l; A a = l.get(0); l.remove(0); l.add(a); ret l; }
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1010265 |
Snippet name: | moveFirstToEnd - modifies original list |
Eternal ID of this version: | #1010265/1 |
Text MD5: | c025c250e444f72ba0f8dd61431dd5ce |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-09-07 20:09:10 |
Source code size: | 125 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 473 / 475 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |