1 | static <A> L<Pair<A>> pairList_lookupAnySide(Collection<Pair<A>> l, A a) {
|
2 | new L<Pair<A>> out; |
3 | for (Pair<A> p : unnull(l)) |
4 | if (eq(p.a, a) || eq(p.b, a)) out.add(p); |
5 | ret out; |
6 | } |
Began life as a copy of #1009466
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: | #1009871 |
| Snippet name: | pairList_lookupAnySide |
| Eternal ID of this version: | #1009871/1 |
| Text MD5: | f28d3984960ce87a70d35603e8b99c62 |
| 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:11:31 |
| Source code size: | 190 bytes / 6 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 802 / 841 |
| Referenced in: | [show references] |