Libraryless. Click here for Pure Java version (2575L/16K).
static LS intRangesToCNC(S s, L<IntRange> l) { new LS tok; int idx = 0; for i over l: { IntRange r = l.get(i); tok.add(substring(s, idx, r.start)); tok.add(substring(s, r)); idx = r.end; } tok.add(substring(s, idx)); ret tok; }
Began life as a copy of #1028530
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1028533 |
Snippet name: | intRangesToCNC |
Eternal ID of this version: | #1028533/1 |
Text MD5: | 6667793e3e89df32b9b4f63344a0d5c8 |
Transpilation MD5: | 4ba82bba9a08ce917e67551a88d7642c |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-06-24 18:49:51 |
Source code size: | 266 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 261 / 374 |
Referenced in: | [show references] |