1 | static double doubleMin(Iterable<Double> l) { |
2 | double min = infinity(); |
3 | fOr (double d : l) |
4 | min = Math.min(min, d); |
5 | ret min; |
6 | } |
7 | |
8 | static double doubleMin(double... l) { |
9 | double min = infinity(); |
10 | fOr (double d : l) |
11 | min = Math.min(min, d); |
12 | ret min; |
13 | } |
Began life as a copy of #1025079
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1030115 |
Snippet name: | doubleMin |
Eternal ID of this version: | #1030115/3 |
Text MD5: | 328b1b346c875c7b69ddbf3d61e3b83f |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-10-24 00:51:05 |
Source code size: | 275 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 211 / 277 |
Version history: | 2 change(s) |
Referenced in: | [show references] |