Libraryless. Click here for Pure Java version (2523L/16K).
static <A, B> Set<A> setOfAsForPairsWithB(B b, Iterable<Pair<A, B>> l) { new Set<A> out; fOr (Pair<A, B> p : l) if (eq(pairB(p), b)) out.add(pairA(p)); ret out; }
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: | #1027828 |
Snippet name: | setOfAsForPairsWithB |
Eternal ID of this version: | #1027828/1 |
Text MD5: | c781c52ba41c80ee60357e53b71b2690 |
Transpilation MD5: | 2b78565ccc6a8d0af5df8b7bf2a9372f |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-04-14 01:02:19 |
Source code size: | 184 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 162 / 230 |
Referenced in: | [show references] |