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

13
LINES

< > BotCompany Repo | #1012896 // ai_tripleRefs - may return webs more than once; allows dollar vars

JavaX fragment (include)

1  
static L<TripleRef<Symbol>> ai_tripleRefs(T3<Symbol> t) {
2  
  ret ai_tripleRefs(t.a, t.b, t.c);
3  
}
4  
5  
static L<TripleRef<Symbol>> ai_tripleRefs(Symbol a, Symbol b, Symbol c) {
6  
  ret ai_tripleRefs(a, b, c, thoughtSpace());
7  
}
8  
9  
static L<TripleRef<Symbol>> ai_tripleRefs(Symbol a, Symbol b, Symbol c, AbstractThoughtSpace ts) {
10  
  int position = tripleIndexOf(a, b, c, symbol_dollarX());
11  
  if (position < 0) fail("No $X in " + ai_renderTriple(a, b, c));
12  
  ret ai_filterTripleRefs(position, a, b, c, ai_thoughtSpace_query(a, b, c, ts));
13  
}

Author comment

Began life as a copy of #1012778

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: #1012896
Snippet name: ai_tripleRefs - may return webs more than once; allows dollar vars
Eternal ID of this version: #1012896/5
Text MD5: 5ab4a437d7e913b8e327510143946076
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-12-16 12:19:40
Source code size: 539 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 382 / 423
Version history: 4 change(s)
Referenced in: [show references]