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

16
LINES

< > BotCompany Repo | #1009500 // Relation

JavaX fragment (include)

sclass Relation {
  S relation;
  L<S> things;
  
  *() {}
  *(S *relation, L<S> *things) {}
  *(S *relation, S... things) { this.things = asList(things); }
  
  bool is(S s) { ret eqic(relation, s); }
  S get(int i) { ret _get(things, i); }
  S a() { ret _get(things, 0); }
  S b() { ret _get(things, 1); }
  S c() { ret _get(things, 2); }
  
  [stdEq]
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1009500
Snippet name: Relation
Eternal ID of this version: #1009500/10
Text MD5: 4ff6764bd40fd371b8f42cae31bafbb5
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-08-06 20:42:10
Source code size: 370 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 402 / 1034
Version history: 9 change(s)
Referenced in: [show references]