1 | // TODO: use ai_thoughtSpace_queryTriples instead |
2 | |
3 | static L<TripleRef<Symbol>> ai_thoughtSpace_query(Symbol a, Symbol b, Symbol c, AbstractThoughtSpace ts) {
|
4 | L<TripleRef<Symbol>> l = null; |
5 | if (!isDollarVar(a)) {
|
6 | if (!isDollarVar(b)) ret ai_triplesToCRefs(ts.getOneTwo(a, b)); |
7 | l = shortestListUnlessNull2(l, ts.get(a, 0)); |
8 | if (l(l) <= 1) ret l; |
9 | } |
10 | if (!isDollarVar(b)) {
|
11 | l = shortestListUnlessNull2(l, ts.get(b, 1)); |
12 | if (l(l) <= 1) ret l; |
13 | } |
14 | if (!isDollarVar(c)) l = shortestListUnlessNull2(l, ts.get(c, 2)); |
15 | ret l; |
16 | } |
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: | 692 / 740 |
| Version history: | 20 change(s) |
| Referenced in: | [show references] |