Libraryless. Click here for Pure Java version (2523L/16K).
1 | static <A, B> Set<A> setOfAsForPairsWithB(B b, Iterable<Pair<A, B>> l) {
|
2 | new Set<A> out; |
3 | fOr (Pair<A, B> p : l) |
4 | if (eq(pairB(p), b)) |
5 | out.add(pairA(p)); |
6 | ret out; |
7 | } |
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: | 370 / 489 |
| Referenced in: | [show references] |