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: | 514 / 526 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1012426 - formatDollarVarsIC #1013190 - formatVars - synonym of formatDollarVars - also takes Y etc. #1032962 - tok_formatDollarVars |