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

28
LINES

< > BotCompany Repo | #1017947 // BakedFactsBot

JavaX fragment (include)

1  
sclass BakedFactsBot_base {
2  
  JComponent visualize() {
3  
    ret jpanel();
4  
  }
5  
}
6  
7  
sclass BakedFactsBot > BakedFactsBot_base {
8  
  !include #1017946
9  
  
10  
  *() {}
11  
  *(VF1<? super S> *postMessage) {}
12  
  
13  
  transient VF1<? super S> postMessage;
14  
  transient new L<Map> recentHistory;
15  
16  
  void postMessage(S s) {
17  
    callF(postMessage, s);
18  
  }
19  
  
20  
  S answer(S s) {
21  
    new L<S> l;
22  
    tempSetField(this, postMessage := vfAddToList(l));
23  
    thinkAbout(s);
24  
    ret rtrim_fromLines(l);
25  
  }
26  
  
27  
  BakedFactsBot think(S s) { thinkAbout(s); this; }
28  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1017947
Snippet name: BakedFactsBot
Eternal ID of this version: #1017947/7
Text MD5: 9e2c33b0e75f436da7a6f12501054b93
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-08-22 23:41:58
Source code size: 557 bytes / 28 lines
Pitched / IR pitched: No / No
Views / Downloads: 304 / 867
Version history: 6 change(s)
Referenced in: [show references]