Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

10
LINES

< > BotCompany Repo | #1022239 // ai_dropTokens

JavaX fragment (include)

static LS ai_dropTokens(LS tok, int i, int j) {
  // move to code tokens
  i |= 1;
  j |= 1;
  if (j <= i) ret tok;
  S punctuation = ai_mergePunctuation(tok.get(i-1), tok.get(j-1));
  LS l = withoutSubList(tok, i, j);
  l.set(i-1, punctuation);
  ret l;
}

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: 278 / 304
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)