Libraryless. Click here for Pure Java version (1478L/10K/32K).
!752 static S input = [[ a becomes an ]]; p { gSet(toLinesFullTrim(input)); new StringBuilder buf; buf.append("static S calc() {\n"); for (Matches m : gMatch("* becomes *")) buf.append(" s = jreplace(s, " + quote(m.unq(0)) + ", " + quote(m.unq(1)) + ");\n"); buf.append("}"); print(buf); }
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1004487 |
Snippet name: | Function Making |
Eternal ID of this version: | #1004487/1 |
Text MD5: | 4f77ee5bbdb86b8e4d302e552828d4f0 |
Transpilation MD5: | 631e723859f6e7e8117d1554fe799ce7 |
Author: | stefan |
Category: | javax / talking robots |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-08-18 19:43:33 |
Source code size: | 328 bytes / 16 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 569 / 591 |
Referenced in: | -