Libraryless. Click here for Pure Java version (2926L/18K).
static <A> ItIt<Pair<A>> allDistinctPairs_inOrder_iterator(L<A> l) { ret mapI listToPair(allSubsetsOfSize_iterator(2, l)); }
Began life as a copy of #1027915
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: | #1027919 |
Snippet name: | allDistinctPairs_inOrder_iterator (all pairs from combining elements of a list, no swapped pairs) |
Eternal ID of this version: | #1027919/1 |
Text MD5: | 94a55237d6de88b9a77bc29d2cd3bcd4 |
Transpilation MD5: | b54b6b0d262311428c6d73db6300949b |
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:54:48 |
Source code size: | 128 bytes / 3 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 190 / 276 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |