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)

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

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: 349 / 376
Version history: 2 change(s)
Referenced in: [show references]