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

20
LINES

< > BotCompany Repo | #1007703 // useFacts

JavaX fragment (include)

please include function trueStatements_cached.
please include function loadTruth_cached.

// use facts in English
static void useFacts(S facts) {
  L<S> statements = linesToCL(facts);
  useFacts_cl(statements);
}
  
// use facts in CL
static void useFacts_cl(L<S> statements) {
  ai();
  // trueStatements_cached_autoClearInterval = 0;
  trueStatements_cached_cache.set(new LinkedHashSet(statements));
  loadTruth_cached_cache.set(aiMakeStatements(statements));
}

static void useFacts_cl(S statements) {
  useFacts_cl(toLinesFullTrim(statements));
}

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: 631 / 609
Version history: 8 change(s)
Referenced in: [show references]