Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

7
LINES

< > BotCompany Repo | #1012050 // shortestList3 - return shortest of 3 lists

JavaX fragment (include)

static <A> L<A> shortestList3(L<A> a, L<A> b, L<A> c) {
  int la = l(a), lb = l(b);
  if (la < lb)
    ret l(c) < la ? c : a;
  else
    ret l(c) < lb ? c : b;
}

Author comment

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: 372 / 409
Version history: 1 change(s)
Referenced in: [show references]