1 | static <A> L<A> moveFirstToEnd(L<A> l) { |
2 | if (l(l) < 2) ret l; |
3 | A a = l.get(0); |
4 | l.remove(0); |
5 | l.add(a); |
6 | ret l; |
7 | } |
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: | 474 / 476 |
Referenced in: | [show references] |