// returns actual CNC static LS tok_combineCodeTokenRanges(LS tok, L<IntRange> ranges) { new LS tok2; int iTok = 0; for (IntRange r : ranges) { tok2.add(joinSubList(tok, iTok, r.start)); tok2.add(joinSubList(tok, r.start, r.end)); iTok = r.end; } tok2.add(joinSubList(tok, iTok)); ret tok2; }
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: | 351 / 386 |
Version history: | 2 change(s) |
Referenced in: | [show references] |