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)

static L<TripleRef<Symbol>> ai_tripleRefs(T3<Symbol> t) {
  ret ai_tripleRefs(t.a, t.b, t.c);
}

static L<TripleRef<Symbol>> ai_tripleRefs(Symbol a, Symbol b, Symbol c) {
  ret ai_tripleRefs(a, b, c, thoughtSpace());
}

static L<TripleRef<Symbol>> ai_tripleRefs(Symbol a, Symbol b, Symbol c, AbstractThoughtSpace ts) {
  int position = tripleIndexOf(a, b, c, symbol_dollarX());
  if (position < 0) fail("No $X in " + ai_renderTriple(a, b, c));
  ret ai_filterTripleRefs(position, a, b, c, ai_thoughtSpace_query(a, b, c, ts));
}

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: 311 / 354
Version history: 4 change(s)
Referenced in: [show references]