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

15
LINES

< > BotCompany Repo | #1012673 // ai_tripleRefsToTexts

JavaX fragment (include)

static L<Symbol> ai_tripleRefsToTexts(Symbol a, Symbol b, Symbol c, L<TripleRef<Symbol>> l) {
  if (empty(l)) ret sharedEmptyList();
  new L<Symbol> out;
  for (TripleRef<Symbol> ref : l) if (ref != null) {
    T3<Symbol> t = ref.triple;
    SymbolSymbol match = simpleMatchTriple_dollarVars(a, b, c, t);
    if (match != null)
      out.add(match.get(symbol_dollarX()));
    ifdef ai_tripleRefsToTexts_debug
    else
      print("No match: " + t);
    endifdef
  }
  ret out;
}

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: #1012673
Snippet name: ai_tripleRefsToTexts
Eternal ID of this version: #1012673/6
Text MD5: 1590dfc939546d003dc4f22915f7fb1e
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-10 21:20:45
Source code size: 492 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 550 / 552
Version history: 5 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1012787 - ai_checkTripleRefs
#1013060 - ai_tripleRefsToTexts_verified