1 | static <A> L<A> flattenPairs(Collection<Pair<A>> l) {
|
2 | new L<A> out; |
3 | for (Pair<A> p: unnull(l)) { out.add(p.a); out.add(p.b); }
|
4 | ret out; |
5 | } |
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: | #1009470 |
| Snippet name: | flattenPairs |
| Eternal ID of this version: | #1009470/2 |
| Text MD5: | a1637a452ab8a77894013238a3f44060 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-08-03 19:28:03 |
| Source code size: | 147 bytes / 5 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 603 / 660 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |