Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

9
LINES

< > BotCompany Repo | #1010857 // formatDollarVars

JavaX fragment (include)

1  
static S formatDollarVars(S pat, SS vars) {
2  
  L<S> tok = javaTok(pat);
3  
  for (int i = 1; i < l(tok); i += 2) {
4  
    S t = tok.get(i);
5  
    S value = vars.get(t);
6  
    if (value != null) tok.set(i, value);
7  
  }
8  
  ret join(tok);
9  
}

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: 515 / 527
Referenced in: [show references]