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

18
LINES

< > BotCompany Repo | #1011647 // ai_texts - search_dollarX & web_texts

JavaX fragment (include)

static L<Symbol> ai_texts(CharSequence _a, CharSequence _b, CharSequence _c) {
  Symbol a = symbol(_a), b = symbol(_b), c = symbol(_c);
  int position = tripleIndexOf(a, b, c, symbol_dollarX());
  if (position < 0) fail("No $X in " + ai_renderTriple(a, b, c));
  if (ai_useThoughtSpaces())
    ret ai_texts(a, b, c, thoughtSpace());

  // legacy  
  ret allToSymbol(web_texts(ai_search_dollarX(a, b, c)));
}

static L<Symbol> ai_texts(Symbol a, Symbol b, Symbol c, AbstractThoughtSpace ts) {
  ret ai_tripleRefsToTexts(a, b, c, ai_thoughtSpace_query(a, b, c, ts));
}

static L<Symbol> ai_texts(T3<Sym> t) {
  ret t == null ? sharedEmptyList() : ai_texts(t.a, t.b, t.c);
}

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: #1011647
Snippet name: ai_texts - search_dollarX & web_texts
Eternal ID of this version: #1011647/18
Text MD5: 5746e3900a339f000595d53ba65e4009
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-22 18:50:56
Source code size: 688 bytes / 18 lines
Pitched / IR pitched: No / No
Views / Downloads: 631 / 631
Version history: 17 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1011807 - ai_text - search triple DB
#1011847 - ai_texts_verified - ai_texts + verified
#1012422 - ai_texts_unquote - ai_texts + unquote
#3000475 - Smart Bot's answer to: !fresh recentlyChangedSnippets()