sS mapTokens_getOrKeep(S s, SS map) { ret join(mapTokens_getOrKeep_overwrite(javaTok(s), map); } static L<S> mapTokens_getOrKeep(L<S> tok, SS map) { ret mapTokens_getOrKeep_overwrite(cloneList(tok), map); } static L<S> mapTokens_getOrKeep_overwrite(L<S> tok, SS map) { for (int i = 1; i < l(tok); i += 2) tok.set(i, getOrKeep(map, tok.get(i))); ret tok; }
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: | 378 / 438 |
Version history: | 2 change(s) |
Referenced in: | [show references] |