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

15
LINES

< > BotCompany Repo | #1012617 // ai_texts_verified_dollarXY

JavaX fragment (include)

static L<Pair<S>> ai_texts_verified_dollarXY(S a, S b, S c) {
  if (isDollarVar(b)) todo();
  new L<Pair<S>> l;
  if (eq(a, "$X") && eq(c, "$Y")) {
    for (WebRelation r : indexedRelations_verified(b))
      l.add(pair(web_text(r.a), web_text(r.b)));
    ret l;
  }
  if (eq(a, "$Y") && eq(c, "$X")) {
    for (WebRelation r : indexedRelations_verified(b))
      l.add(pair(web_text(r.b), web_text(r.a)));
    ret l;
  }
  fail("improper arguments: " + a + "/" + b + "/" + c);
}

Author comment

Began life as a copy of #1012112

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: #1012617
Snippet name: ai_texts_verified_dollarXY
Eternal ID of this version: #1012617/1
Text MD5: 0321fb2e2ee81adf8b00b675de90e256
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-08 13:21:40
Source code size: 493 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 369 / 413
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)