// 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: | 466 / 507 |
Version history: | 20 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1012777 - ai_thoughtSpace_queryTriples |