1 | static <A, B> L<A> asForPairsWithB(B b, Iterable<Pair<A, B>> l) { |
2 | new L<A> out; |
3 | fOr (Pair<A, B> p : l) |
4 | if (eq(pairB(p), b)) |
5 | out.add(pairA(p)); |
6 | ret out; |
7 | } |
8 | |
9 | static <A, B> L<A> asForPairsWithB(Iterable<Pair<A, B>> l, B b) { |
10 | ret asForPairsWithB(b, l); |
11 | } |
Began life as a copy of #1027828
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1030263 |
Snippet name: | asForPairsWithB |
Eternal ID of this version: | #1030263/2 |
Text MD5: | 409b08b8332fda90bb75ab2713cc2b3a |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-11-21 14:46:49 |
Source code size: | 273 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 195 / 221 |
Version history: | 1 change(s) |
Referenced in: | [show references] |