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

5
LINES

< > BotCompany Repo | #1012149 // ai_replaceStandaloneVarsInTriple - only replaces them "standalone" (as a third of a triple)

JavaX fragment (include)

static T3<S> ai_replaceStandaloneVarsInTriple(T3<S> t, SS map) {
  S a = map.get(t.a), b = map.get(t.b), c = map.get(t.c);
  if (a == null && b == null && c == null) ret t;
  ret t3(or(a, t.a), or(b, t.b), or(c, 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: #1012149
Snippet name: ai_replaceStandaloneVarsInTriple - only replaces them "standalone" (as a third of a triple)
Eternal ID of this version: #1012149/1
Text MD5: e7f700f8d21d45d04a505a2780594bd8
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-21 11:43:37
Source code size: 224 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 376 / 397
Referenced in: [show references]