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

8
LINES

< > BotCompany Repo | #1016922 // minOfDoubles

JavaX fragment (include)

static double minOfDoubles(Iterable<Double> l) {
  Iterator<Double> it = iterator(l);
  if (!it.hasNext()) ret Double.NaN;
  double d = it.next();
  while (it.hasNext())
    d = min(d, it.next());
  ret d;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1016922
Snippet name: minOfDoubles
Eternal ID of this version: #1016922/1
Text MD5: 7d529bfc4f9136fa936be1bb7901d789
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-07-08 00:40:02
Source code size: 214 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 330 / 348
Referenced in: [show references]