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

3
LINES

< > BotCompany Repo | #1027915 // allDistinctPairs_inOrder (all pairs from combining elements of a list, no swapped pairs)

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

Libraryless. Click here for Pure Java version (2990L/18K).

1  
static <A> LPair<A> allDistinctPairs_inOrder(L<A> l) {
2  
  ret lambdaMap listToPair(allSubsetsOfSize_iterator(2, l));
3  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1027915
Snippet name: allDistinctPairs_inOrder (all pairs from combining elements of a list, no swapped pairs)
Eternal ID of this version: #1027915/3
Text MD5: 5d6899abd8cc5031bc625532ec3cec3e
Transpilation MD5: 906a92b75b281eb74c9370badf61a805
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-04-17 11:33:53
Source code size: 119 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 203 / 280
Version history: 2 change(s)
Referenced in: [show references]