static L<S> tok_surroundWordsWithAngularBrackets(L<S> tok, S... words) { Set<S> set = litciset(words); for (int i = 1; i < l(tok); i += 2) { S t = tok.get(i); if (set.contains(t)) tok.set(i, angleBrackets(t)); } ret tok; }
Began life as a copy of #1013019
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: | #1013021 |
Snippet name: | tok_surroundsWordWithAngularBrackets - case-insensitive |
Eternal ID of this version: | #1013021/1 |
Text MD5: | 231e858d49aa8186fd697531f1d8d314 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-12-22 03:17:31 |
Source code size: | 252 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 414 / 457 |
Referenced in: | [show references] |