static <A, B> L<B> pairList_forwardLookup(Collection<Pair<A, B>> l, A a) { new L<B> out; for (Pair<A, B> p : unnull(l)) if (eq(p.a, a)) out.add(p.b); ret out; }
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: | #1009465 |
| Snippet name: | pairList_forwardLookup - look up all second entries for pairs with given first entry in a L<Pair> |
| Eternal ID of this version: | #1009465/2 |
| Text MD5: | 50a305fc5fe5e2213a0bf74dcb153164 |
| 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:04 |
| Source code size: | 175 bytes / 6 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 761 / 795 |
| Version history: | 1 change(s) |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1009466 - pairList_backwardLookup - look up all first entries for pairs with given second entry in a L<Pair> |