Libraryless. Click here for Pure Java version (2990L/18K).
static <A> LPair<A> allDistinctPairs_inOrder(L<A> l) { ret lambdaMap listToPair(allSubsetsOfSize_iterator(2, l)); }
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: | 202 / 277 |
Version history: | 2 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1027918 - test_allDistinctPairs_inOrder (OK) #1027919 - allDistinctPairs_inOrder_iterator (all pairs from combining elements of a list, no swapped pairs) |