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

7
LINES

< > BotCompany Repo | #1004220 // pair - make value pair

JavaX fragment (include)

1  
static <A, B> Pair<A, B> pair(A a, B b) {
2  
  ret new Pair(a, b);
3  
}
4  
5  
static <A> Pair<A> pair(A a) {
6  
  ret new Pair(a, a);
7  
}

Author comment

Began life as a copy of #1004217

download  show line numbers  debug dex  old transpilations   

Travelled to 17 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, whxojlpjdney, xrpafgyirdlv

No comments. add comment

Snippet ID: #1004220
Snippet name: pair - make value pair
Eternal ID of this version: #1004220/2
Text MD5: ba0209642c257cd363261bc2e2b0f4a5
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-11-09 05:42:01
Source code size: 127 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 734 / 924
Version history: 1 change(s)
Referenced in: [show references]