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

13
LINES

< > BotCompany Repo | #1032410 // shortMin

JavaX fragment (include)

static short shortMin(Iterable<Short> l) {
  int min = Short.MAX_VALUE;
  fOr (short d : l)
    min = Math.min(min, d);
  ret (short) min;
}

static short shortMin(short[] l) {
  int min = Short.MAX_VALUE;
  fOr (short d : l)
    min = Math.min(min, d);
  ret (short) min;
}

Author comment

Began life as a copy of #1030115

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx

No comments. add comment

Snippet ID: #1032410
Snippet name: shortMin
Eternal ID of this version: #1032410/4
Text MD5: dbc09e0c9836704900bec49736249c66
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-09-03 02:15:09
Source code size: 286 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 140 / 183
Version history: 3 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1032411 - shortMax