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

7
LINES

< > BotCompany Repo | #1012658 // tripleGet - get part of triple

JavaX fragment (include)

1  
static <A> A tripleGet(T3<A> t, int i) {
2  
  if (t == null) null;
3  
  if (i == 0) ret t.a;
4  
  if (i == 1) ret t.b;
5  
  if (i == 2) ret t.c;
6  
  null;
7  
}

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: #1012658
Snippet name: tripleGet - get part of triple
Eternal ID of this version: #1012658/2
Text MD5: d3a571c60123f8f67663fa7c93e30b9e
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-12-10 00:45:05
Source code size: 148 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 538 / 539
Version history: 1 change(s)
Referenced in: [show references]