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

12
LINES

< > BotCompany Repo | #1013064 // ai_triplesToBCPairs

JavaX fragment (include)

1  
static L<Pair<Symbol>> ai_triplesToBCPairs(final L<TripleWeb> l) {
2  
  if (l == null) null;
3  
  class TTBCList extends LazyList<Pair<Symbol>> {
4  
    final int n = l(l);
5  
    public int size() { ret n; }
6  
    public Pair<Symbol> get(int i) {
7  
      TripleWeb w = syncGet(l, i);
8  
      ret w == null ? null : pair(w.b, w.c);
9  
    }
10  
  }
11  
  ret new TTBCList;
12  
}

Author comment

Began life as a copy of #1013013

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: #1013064
Snippet name: ai_triplesToBCPairs
Eternal ID of this version: #1013064/3
Text MD5: dc6554109ec1aae29976ad1651a292e7
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-24 18:31:38
Source code size: 356 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 418 / 432
Version history: 2 change(s)
Referenced in: [show references]