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

20
LINES

< > BotCompany Repo | #1008091 // 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(map(f dropGlobalIDPrefix, 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 #1007703

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: #1008091
Snippet name: useFacts
Eternal ID of this version: #1008091/1
Text MD5: 68bf35723487ed61242a2f1834de0864
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-24 14:19:26
Source code size: 596 bytes / 20 lines
Pitched / IR pitched: No / No
Views / Downloads: 361 / 353
Referenced in: [show references]