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

12
LINES

< > BotCompany Repo | #1013013 // ai_triplesToACPairs

JavaX fragment (include)

static L<Pair<Symbol>> ai_triplesToACPairs(final L<TripleWeb> l) {
  if (l == null) null;
  class TTACList extends LazyList<Pair<Symbol>> {
    final int n = l(l);
    public int size() { ret n; }
    public Pair<Symbol> get(int i) {
      TripleWeb w = syncGet(l, i);
      ret w == null ? null : pair(w.a, w.c);
    }
  }
  ret new TTACList;
}

Author comment

Began life as a copy of #1012649

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: #1013013
Snippet name: ai_triplesToACPairs
Eternal ID of this version: #1013013/3
Text MD5: 2165da183e7e67ea49b64366af80e7f2
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-21 03:06:57
Source code size: 356 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 316 / 340
Version history: 2 change(s)
Referenced in: [show references]