1 | static L<Int> indicesOfCodeTokensContainedInSet(LS tok, Set<S> set) { |
2 | new L<Int> l; |
3 | if (nempty(set)) |
4 | for (int i = 1; i < l(tok); i += 2) |
5 | if (set.contains(tok.get(i))) |
6 | l.add(i); |
7 | ret l; |
8 | } |
Began life as a copy of #1023449
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1023805 |
Snippet name: | indicesOfCodeTokensContainedInSet |
Eternal ID of this version: | #1023805/1 |
Text MD5: | 3b8e08f055c94df06e17f0232f2037c1 |
Author: | stefan |
Category: | javax / parsing |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-07-09 12:39:05 |
Source code size: | 216 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 194 / 235 |
Referenced in: | [show references] |