1 | static <A> L<IntRange> magicSubListsToIntRanges(L<A> original, LL<A> lists) { |
2 | L<IntRange> out = emptyList(lists); |
3 | for (L l : lists) { |
4 | int i = magicIndexOfSubList(original, l); |
5 | if (i < 0) null; |
6 | out.add(intRange(i, i+l(l))); |
7 | } |
8 | ret out; |
9 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1018236 |
Snippet name: | magicSubListsToIntRanges - returns null if not actual sublists |
Eternal ID of this version: | #1018236/2 |
Text MD5: | 8f2581e62558ebe8f605e1426c214810 |
Author: | stefan |
Category: | javac |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-09-11 17:19:59 |
Source code size: | 263 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 301 / 318 |
Version history: | 1 change(s) |
Referenced in: | [show references] |