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

15
LINES

< > BotCompany Repo | #1012112 // ai_texts_dollarXY

JavaX fragment (include)

static L<Pair<S>> ai_texts_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(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(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 #1011892

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: #1012112
Snippet name: ai_texts_dollarXY
Eternal ID of this version: #1012112/3
Text MD5: 01bbc595f1d7eb8f6a7d76947ba2890b
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-11-20 09:12:53
Source code size: 466 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 355 / 402
Version history: 2 change(s)
Referenced in: [show references]