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

10
LINES

< > BotCompany Repo | #1017774 // prepareEvalWithDollarVars - vars are strings

JavaX fragment (include)

static Pair<LS, O> prepareEvalWithDollarVars(S code) {
  ret prepareEvalWithDollarVars(code, tok_dollarVarTokens(javaTok(code)));
}
  
static Pair<LS, O> prepareEvalWithDollarVars(S code, Set<S> vars) {
  temp tempSetThreadLocal(evalJava_prep_args, joinWithComma(map(func(S var) -> S { "S " + var }, vars)));
  S src = evalJava_prep(code);
  O c = evalJava_prep2(src);
  ret pair((L<S>) asList(vars), c);
}

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: #1017774
Snippet name: prepareEvalWithDollarVars - vars are strings
Eternal ID of this version: #1017774/6
Text MD5: 627882ef1b24b149abc84e59f7204ac6
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-08-28 17:37:31
Source code size: 415 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 332 / 385
Version history: 5 change(s)
Referenced in: [show references]