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

16
LINES

< > BotCompany Repo | #1012653 // ai_thoughtSpace_query - does not actually match the triple

JavaX fragment (include)

// TODO: use ai_thoughtSpace_queryTriples instead

static L<TripleRef<Symbol>> ai_thoughtSpace_query(Symbol a, Symbol b, Symbol c, AbstractThoughtSpace ts) {
  L<TripleRef<Symbol>> l = null;
  if (!isDollarVar(a)) {
    if (!isDollarVar(b)) ret ai_triplesToCRefs(ts.getOneTwo(a, b));
    l = shortestListUnlessNull2(l, ts.get(a, 0));
    if (l(l) <= 1) ret l;
  }
  if (!isDollarVar(b)) {
    l = shortestListUnlessNull2(l, ts.get(b, 1));
    if (l(l) <= 1) ret l;
  }
  if (!isDollarVar(c)) l = shortestListUnlessNull2(l, ts.get(c, 2));
  ret l;
}

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: #1012653
Snippet name: ai_thoughtSpace_query - does not actually match the triple
Eternal ID of this version: #1012653/21
Text MD5: 94fe221023927a045b6da4ec75563f9f
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-01-13 21:19:19
Source code size: 563 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 392 / 429
Version history: 20 change(s)
Referenced in: [show references]