1 | static MultiSet<S> collectSuffixesAfterToken(Collection<S> l, S token) { |
2 | new MultiSet<S> suffixes; |
3 | for (S s : l) { |
4 | L<S> tok = javaTok(s); |
5 | int i = indexOf(tok, token); |
6 | if (i < 0) continue; |
7 | suffixes.add(joinSubList(tok, i+2)); |
8 | } |
9 | ret suffixes; |
10 | } |
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: | 406 / 447 |
Referenced in: | [show references] |