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

10
LINES

< > BotCompany Repo | #1013550 // collectSuffixesAfterTokenIC - token is IC, multiset is not

JavaX fragment (include)

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

Author comment

Began life as a copy of #1013549

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: #1013550
Snippet name: collectSuffixesAfterTokenIC - token is IC, multiset is not
Eternal ID of this version: #1013550/3
Text MD5: 53296737d7012bcca9272edcbc725237
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:59:38
Source code size: 279 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 348 / 374
Version history: 2 change(s)
Referenced in: [show references]