Libraryless. Click here for Pure Java version (1478L/10K/32K).
1 | !752 |
2 | |
3 | static S input = [[ |
4 | a becomes an |
5 | ]]; |
6 | |
7 | p {
|
8 | gSet(toLinesFullTrim(input)); |
9 | |
10 | new StringBuilder buf; |
11 | buf.append("static S calc() {\n");
|
12 | for (Matches m : gMatch("* becomes *"))
|
13 | buf.append(" s = jreplace(s, " + quote(m.unq(0)) + ", " + quote(m.unq(1)) + ");\n");
|
14 | buf.append("}");
|
15 | print(buf); |
16 | } |
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: | 777 / 842 |
| Referenced in: | [show references] |