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

16
LINES

< > BotCompany Repo | #1003607 // gen - quickly add Gen object

JavaX fragment (include)

// assumes the function returns toString()
static void gen(L<Gen> l, O func) {
  l.add(new Gen(str(func), func));
}

static void gen(L<Gen> l, S name, O func) {
  l.add(new Gen(name, func));
}

static void gen(L<Gen> l, int line, O func) {
  gen(l, str(line), func);
}

static void gen(L<Gen> l, Quine q) {
  gen(l, q.text, q.value);
}

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: 501 / 630
Referenced in: [show references]