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

19
LINES

< > BotCompany Repo | #1011964 // TripleRef - reference to part of a string triple

JavaX fragment (include)

abstract sclass TripleRef<A> {
  Triple<A> triple;

  *() {}
  *(Triple<A> *triple) {}
  
  A get() {
    ret tripleAtPosition(triple(), position());
  }
  
  Triple<A> triple() { ret triple; }
  
  // 0 = a, 1 = b, 2 = c
  abstract int position();
  
  toString {
    ret position() + "@" + triple;
  }
}

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: #1011964
Snippet name: TripleRef - reference to part of a string triple
Eternal ID of this version: #1011964/11
Text MD5: e5a30afe4bb9450520ec5527f7e6747f
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-10 02:27:53
Source code size: 323 bytes / 19 lines
Pitched / IR pitched: No / No
Views / Downloads: 473 / 1044
Version history: 10 change(s)
Referenced in: [show references]