1 | sS mapTokens_getOrKeep(S s, SS map) { |
2 | ret join(mapTokens_getOrKeep_overwrite(javaTok(s), map); |
3 | } |
4 | |
5 | static L<S> mapTokens_getOrKeep(L<S> tok, SS map) { |
6 | ret mapTokens_getOrKeep_overwrite(cloneList(tok), map); |
7 | } |
8 | |
9 | static L<S> mapTokens_getOrKeep_overwrite(L<S> tok, SS map) { |
10 | for (int i = 1; i < l(tok); i += 2) |
11 | tok.set(i, getOrKeep(map, tok.get(i))); |
12 | ret tok; |
13 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1016766 |
Snippet name: | mapTokens_getOrKeep |
Eternal ID of this version: | #1016766/3 |
Text MD5: | f4980a1d09cf8990eb8ef19738e1d0f9 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-07-26 10:25:18 |
Source code size: | 381 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 379 / 439 |
Version history: | 2 change(s) |
Referenced in: | [show references] |