Libraryless. Click here for Pure Java version (2572L/16K).
1 | // i must be odd |
2 | svoid clearTokensExceptFromSet(LS tok, int i, int j, Cl<S> set) { |
3 | set = asSet(set); |
4 | for (; i < j; i += 2) |
5 | if (!contains(set, tok.get(i))) |
6 | clearTokens(tok, i, i+2); |
7 | } |
Began life as a copy of #1001158
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1028760 |
Snippet name: | clearTokensExceptFromSet |
Eternal ID of this version: | #1028760/1 |
Text MD5: | a4f8247fdffb09efc92bd894fc2325d7 |
Transpilation MD5: | f3ef63f8a84f3df1ec59acc14dca3035 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-07-07 15:25:24 |
Source code size: | 202 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 194 / 292 |
Referenced in: | [show references] |