Libraryless. Click here for Pure Java version (2572L/16K).
// i must be odd svoid clearTokensExceptFromSet(LS tok, int i, int j, Cl<S> set) { set = asSet(set); for (; i < j; i += 2) if (!contains(set, tok.get(i))) clearTokens(tok, i, i+2); }
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: | 193 / 291 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |