1 | static <A> L<A> listWithoutIndex(L<A> l, int i) {
|
2 | int n = l(l); |
3 | if (i < 0 || i >= n) ret l; |
4 | L<A> out = emptyList(n-1); |
5 | for j to i: out.add(l.get(j)); |
6 | for (i++; i < n; i++) |
7 | out.add(l.get(i)); |
8 | ret out; |
9 | } |
Began life as a copy of #1014727
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1016850 |
| Snippet name: | listWithoutIndex |
| Eternal ID of this version: | #1016850/1 |
| Text MD5: | e37fff54d8c24005458038188bec56ac |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-07-05 19:38:50 |
| Source code size: | 225 bytes / 9 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 549 / 596 |
| Referenced in: | [show references] |