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

15
LINES

< > BotCompany Repo | #1011863 // ai_spec_answerExternalQuestion

JavaX fragment (include)

1  
static void ai_spec_answerExternalQuestion(S question) {
2  
  S q = unquote(question);
3  
  ai_spec_switcheroo(q);
4  
  S q2 = ai_text(q, "switcheroo", "$X");
5  
  if (q2 == null) ret;
6  
  ai_speculate(q2);
7  
  S a = ai_text("$X", "answers", q2);
8  
  if (a == null) ret;
9  
  
10  
  // Optional switcheroo back
11  
  ai_spec_switcheroo(a);
12  
  S a2 = or(ai_text(a, "switcheroo", "$X"), a);
13  
  
14  
  ai_postTriple(a2, "answers external question", question);
15  
}

Author comment

Began life as a copy of #1011648

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1011863
Snippet name: ai_spec_answerExternalQuestion
Eternal ID of this version: #1011863/6
Text MD5: 0434856c0645ae134f9f92aae5112d3c
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-11-08 18:38:34
Source code size: 437 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 423 / 447
Version history: 5 change(s)
Referenced in: [show references]