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

12
LINES

< > BotCompany Repo | #1022850 // tok_remainingPhrases

JavaX fragment (include)

static LS tok_remainingPhrases(LS tok, BitSet marked) {
  new LS out;
  for (int i = 1; i < l(tok); i += 2) {
    if (getBit(marked, i)) continue;
    int j = i+2;
    while (j < l(tok) && !getBit(marked, j))
      j += 2;
    out.add(joinSubList(tok, i, j-1));
    i = j;
  }
  ret out;
}

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: #1022850
Snippet name: tok_remainingPhrases
Eternal ID of this version: #1022850/1
Text MD5: c571365cd7078215c78829eb5d170fe4
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-04-10 17:32:00
Source code size: 300 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 242 / 284
Referenced in: [show references]