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

13
LINES

< > BotCompany Repo | #1030115 // doubleMin

JavaX fragment (include)

static double doubleMin(Iterable<Double> l) {
  double min = infinity();
  fOr (double d : l)
    min = Math.min(min, d);
  ret min;
}

static double doubleMin(double... l) {
  double min = infinity();
  fOr (double d : l)
    min = Math.min(min, d);
  ret min;
}

Author comment

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: 147 / 207
Version history: 2 change(s)
Referenced in: [show references]