static S formatDollarVars(S pat, SS vars) { L<S> tok = javaTok(pat); for (int i = 1; i < l(tok); i += 2) { S t = tok.get(i); S value = vars.get(t); if (value != null) tok.set(i, value); } ret join(tok); }
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: | #1010857 |
Snippet name: | formatDollarVars |
Eternal ID of this version: | #1010857/1 |
Text MD5: | 8902a056c808c3797f1f2169cf707c3e |
Author: | stefan |
Category: | javax / parsing |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-10-04 22:38:27 |
Source code size: | 232 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 513 / 525 |
Referenced in: | [show references] |