static L xtok_ampersand(L l) { int i = indexOfLiteralSubList(l, "&", "", "&"); if (i < 2 || i+4 >= l(l)) ret l; // must have stuff on left and right if (l(l) == 9) ret l; // already in best shape new L x; x.add(l.get(0)); if (i == 2) x.add(l.get(1)); else x.add(cncComplete(subList(l, 1, i-1))); x.addAll(subList(l, i-1, i+4)); if (i+6 == l(l)) x.add(l.get(i+4)); else x.add(cncComplete(subList(l, i+4, l(l)-1))); x.add(last(l)); ret x; }
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1008812 |
Snippet name: | xtok_ampersand |
Eternal ID of this version: | #1008812/2 |
Text MD5: | 91ee47eb2be09cceb0b3da8a376a1640 |
Author: | stefan |
Category: | javax / parsing |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-06-09 02:57:33 |
Source code size: | 469 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 477 / 529 |
Version history: | 1 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |