1 | // assumes the function returns toString() |
2 | static void gen(L<Gen> l, O func) { |
3 | l.add(new Gen(str(func), func)); |
4 | } |
5 | |
6 | static void gen(L<Gen> l, S name, O func) { |
7 | l.add(new Gen(name, func)); |
8 | } |
9 | |
10 | static void gen(L<Gen> l, int line, O func) { |
11 | gen(l, str(line), func); |
12 | } |
13 | |
14 | static void gen(L<Gen> l, Quine q) { |
15 | gen(l, q.text, q.value); |
16 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1003607 |
Snippet name: | gen - quickly add Gen object |
Eternal ID of this version: | #1003607/1 |
Text MD5: | f8afb1559a83ed2880c3da440391fad4 |
Author: | stefan |
Category: | javax / talking robots |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-07-27 17:32:36 |
Source code size: | 352 bytes / 16 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 614 / 730 |
Referenced in: | [show references] |