1 | static <A> L<A> shortestList3(L<A> a, L<A> b, L<A> c) {
|
2 | int la = l(a), lb = l(b); |
3 | if (la < lb) |
4 | ret l(c) < la ? c : a; |
5 | else |
6 | ret l(c) < lb ? c : b; |
7 | } |
Began life as a copy of #1011338
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: | #1012050 |
| Snippet name: | shortestList3 - return shortest of 3 lists |
| Eternal ID of this version: | #1012050/2 |
| Text MD5: | 7328c919ded2c033d1a77ad1e79900a2 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-12-10 00:41:39 |
| Source code size: | 167 bytes / 7 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 661 / 709 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |