1 | // returns actual CNC |
2 | static LS tok_combineCodeTokenRanges(LS tok, L<IntRange> ranges) { |
3 | new LS tok2; |
4 | int iTok = 0; |
5 | for (IntRange r : ranges) { |
6 | tok2.add(joinSubList(tok, iTok, r.start)); |
7 | tok2.add(joinSubList(tok, r.start, r.end)); |
8 | iTok = r.end; |
9 | } |
10 | tok2.add(joinSubList(tok, iTok)); |
11 | ret tok2; |
12 | } |
Began life as a copy of #1018226
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: | #1018227 |
Snippet name: | tok_combineCodeTokenRanges |
Eternal ID of this version: | #1018227/3 |
Text MD5: | 8f44c3f6e55541e8c76dfa811c27486d |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-09-11 13:25:37 |
Source code size: | 327 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 361 / 397 |
Version history: | 2 change(s) |
Referenced in: | [show references] |