1 | static <A, B> L<A> pairList_backwardLookup(Collection<Pair<A, B>> l, B b) {
|
2 | new L<A> out; |
3 | for (Pair<A, B> p : unnull(l)) |
4 | if (eq(p.b, b)) out.add(p.a); |
5 | ret out; |
6 | } |
Began life as a copy of #1009465
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1009466 |
| Snippet name: | pairList_backwardLookup - look up all first entries for pairs with given second entry in a L<Pair> |
| Eternal ID of this version: | #1009466/3 |
| Text MD5: | b15891091fe55f5f8d096bd7d33721ec |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-08-22 19:08:16 |
| Source code size: | 176 bytes / 6 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 734 / 804 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |