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

8
LINES

< > BotCompany Repo | #1017731 // nlLogic_stringFunction

JavaX fragment (include)

1  
sbool nlLogic_stringFunction(S f, Func e, SS matches) {
2  
  L<S> l = tok_splitAtComma(javaTokWithBrackets(nlLogic_text(e.arg)));
3  
  if (l(l) != 2) false;
4  
  l = mapReplaceVars2(l, matches);
5  
  if (isDollarVar(second(l)) && !isDollarVar(first(l)))
6  
    ret strictPutIC(matches, second(l), str(callAndMake(f, first(l))));
7  
  ret eqic(second(l), first(l));
8  
}

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: #1017731
Snippet name: nlLogic_stringFunction
Eternal ID of this version: #1017731/2
Text MD5: ccf304ebd5e723dc5a939d041b26a9e3
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-08-20 12:46:52
Source code size: 355 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 404 / 468
Version history: 1 change(s)
Referenced in: [show references]