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

15
LINES

< > BotCompany Repo | #1013235 // ai_patternSwitch_upperCaseVars

JavaX fragment (include)

static S ai_patternSwitch_upperCaseVars(S from, S to, S s) {
  ret ai_patternSwitch_upperCaseVars(javaTokC(from), to, s);
}

static S ai_patternSwitch_upperCaseVars(L<S> from, S to, S s) {
  L<S> tok = javaTokPlusBracketsC_unquote(s);
  L<S> tok1 = from, tok2 = javaTokC(to);
  
  SS operands = ai_operands_upperCaseVars(from, s);
  new L<S> out;
  
  for (S t : tok2)
    out.add(or(operands.get(t), t));
  ret joinWithSpace(out);
}

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: #1013235
Snippet name: ai_patternSwitch_upperCaseVars
Eternal ID of this version: #1013235/4
Text MD5: 0b79ef569694bdd897edf8d209e7431f
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-12-28 23:46:22
Source code size: 447 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 457 / 444
Version history: 3 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)