1 | static L<S> tok_surroundWordsWithAngularBrackets(L<S> tok, S... words) { |
2 | Set<S> set = litciset(words); |
3 | for (int i = 1; i < l(tok); i += 2) { |
4 | S t = tok.get(i); |
5 | if (set.contains(t)) |
6 | tok.set(i, angleBrackets(t)); |
7 | } |
8 | ret tok; |
9 | } |
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: | 415 / 459 |
Referenced in: | [show references] |