1 | static <A> LL<A> splitAroundSubListIndices(L<A> x, L<Int> indices, int subListLength) { |
2 | new LL<A> l; |
3 | for (int i = 0; i <= l(indices); i++) |
4 | l.add(subList(x, |
5 | i == 0 ? 0 : indices.get(i-1)+subListLength, |
6 | i == l(indices) ? l(x) : indices.get(i))); |
7 | ret l; |
8 | } |
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: | #1017534 |
Snippet name: | splitAroundSubListIndices |
Eternal ID of this version: | #1017534/2 |
Text MD5: | ffd717daf11e824c9665eb59cddcb322 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-07-26 13:25:20 |
Source code size: | 282 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 340 / 366 |
Version history: | 1 change(s) |
Referenced in: | [show references] |