1 | static double minOfDoubles(Iterable<Double> l) { |
2 | Iterator<Double> it = iterator(l); |
3 | if (!it.hasNext()) ret Double.NaN; |
4 | double d = it.next(); |
5 | while (it.hasNext()) |
6 | d = min(d, it.next()); |
7 | ret d; |
8 | } |
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: | 404 / 425 |
Referenced in: | [show references] |