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

18
LINES

< > BotCompany Repo | #1005470 // ConceptL - concept with a list of concepts

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (18149L/112K).

1  
sclass ConceptL extends Concept implements Iterable<Concept> {
2  
  new RefL<Concept> l;
3  
  
4  
  *() {}
5  
  *(L l) { main addAll(this.l, l); }
6  
  
7  
  void addAll(L l) {
8  
    this.l.addAll(l);
9  
  }
10  
  
11  
  public Iterator<Concept> iterator() {
12  
    ret l.iterator();
13  
  }
14  
  
15  
  public L<Concept> getList() {
16  
    ret l;
17  
  }
18  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 17 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ekrmjmnbrukm, elmgxqgtpvxh, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, wnsclhtenguj

No comments. add comment

Snippet ID: #1005470
Snippet name: ConceptL - concept with a list of concepts
Eternal ID of this version: #1005470/2
Text MD5: 12237cf493fc8895ba611534946cec4c
Transpilation MD5: 9a8bd728247fd08e2df7b2ec596a645f
Author: stefan
Category: javax / concepts
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-09-30 03:04:18
Source code size: 322 bytes / 18 lines
Pitched / IR pitched: No / No
Views / Downloads: 646 / 1556
Version history: 1 change(s)
Referenced in: [show references]