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

10
LINES

< > BotCompany Repo | #1013549 // collectSuffixesAfterToken

JavaX fragment (include)

static MultiSet<S> collectSuffixesAfterToken(Collection<S> l, S token) {
  new MultiSet<S> suffixes;
  for (S s : l) {
    L<S> tok = javaTok(s);
    int i = indexOf(tok, token);
    if (i < 0) continue;
    suffixes.add(joinSubList(tok, i+2));
  }
  ret suffixes;
}

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: #1013549
Snippet name: collectSuffixesAfterToken
Eternal ID of this version: #1013549/1
Text MD5: 138f431ffd7c393b739d76ddb79bc72a
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-01-09 10:57:51
Source code size: 275 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 407 / 447
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1013550 - collectSuffixesAfterTokenIC - token is IC, multiset is not