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

20
LINES

< > BotCompany Repo | #1007703 // useFacts

JavaX fragment (include)

1  
please include function trueStatements_cached.
2  
please include function loadTruth_cached.
3  
4  
// use facts in English
5  
static void useFacts(S facts) {
6  
  L<S> statements = linesToCL(facts);
7  
  useFacts_cl(statements);
8  
}
9  
  
10  
// use facts in CL
11  
static void useFacts_cl(L<S> statements) {
12  
  ai();
13  
  // trueStatements_cached_autoClearInterval = 0;
14  
  trueStatements_cached_cache.set(new LinkedHashSet(statements));
15  
  loadTruth_cached_cache.set(aiMakeStatements(statements));
16  
}
17  
18  
static void useFacts_cl(S statements) {
19  
  useFacts_cl(toLinesFullTrim(statements));
20  
}

Author comment

Began life as a copy of #1007671

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1007703
Snippet name: useFacts
Eternal ID of this version: #1007703/9
Text MD5: a686fc68c9bab4ded42e84c459e8fd33
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-04-13 18:03:32
Source code size: 569 bytes / 20 lines
Pitched / IR pitched: No / No
Views / Downloads: 632 / 610
Version history: 8 change(s)
Referenced in: [show references]