1 | static LS ai_dropTokens(LS tok, int i, int j) { |
2 | // move to code tokens |
3 | i |= 1; |
4 | j |= 1; |
5 | if (j <= i) ret tok; |
6 | S punctuation = ai_mergePunctuation(tok.get(i-1), tok.get(j-1)); |
7 | LS l = withoutSubList(tok, i, j); |
8 | l.set(i-1, punctuation); |
9 | ret l; |
10 | } |
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1022239 |
Snippet name: | ai_dropTokens |
Eternal ID of this version: | #1022239/1 |
Text MD5: | 8f5c811a42c1a308ae9c30bfe42cb024 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-03-11 15:33:09 |
Source code size: | 265 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 277 / 304 |
Referenced in: | [show references] |