1 | sS sf_dropArguments(S name) { |
2 | S snippetID = standardFunctionMap().get(name); |
3 | if (snippetID == null) ret "Function not found: " + name; |
4 | S src = loadSnippet(snippetID); |
5 | LS tok = javaTok(src); |
6 | tok_dropFunctionArguments(tok); |
7 | if (eq(join(tok), src)) ret "No change"; |
8 | ret editSnippet(snippetID, join(tok)); |
9 | } |
Began life as a copy of #1019163
download show line numbers debug dex old transpilations
Travelled to 11 computer(s): bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1019708 |
Snippet name: | sf_dropArguments - removes all arguments from a standard function (why?) |
Eternal ID of this version: | #1019708/2 |
Text MD5: | 7f54d9a04eb040180a37b4d700b819a3 |
Author: | stefan |
Category: | javax / transpiling |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-01-09 20:39:11 |
Source code size: | 325 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 369 / 400 |
Version history: | 1 change(s) |
Referenced in: | [show references] |