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

8
LINES

< > BotCompany Repo | #1019163 // sf_addReversedArguments

JavaX fragment (include)

sS sf_addReversedArguments(S name) {
  S snippetID = stdFunctions_cached().get(name);
  if (snippetID == null) ret "Function not found: " + name;
  S src = loadSnippet(snippetID);
  S reversed = tok_reverseFunctionArguments(javaDropAllComments(src));
  if (containsSubList(javaTokC(src), javaTokC(reversed))) ret "Already made";
  ret editSnippet(snippetID, joinWithEmptyLines(src, reversed));
}

download  show line numbers  debug dex  old transpilations   

Travelled to 12 computer(s): bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1019163
Snippet name: sf_addReversedArguments
Eternal ID of this version: #1019163/4
Text MD5: 2cc3989aebe69ba9fc38acda5c83bb9b
Author: stefan
Category: javax / transpiling
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-10-26 00:27:52
Source code size: 402 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 295 / 379
Version history: 3 change(s)
Referenced in: [show references]