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

13
LINES

< > BotCompany Repo | #1032411 // shortMax

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Compilation Failed (107L/1K).

static short shortMax(Iterable<Short> l) {
  int max = Short.MIN_VALUE;
  fOr (short d : l)
    max = Math.max(max, d);
  ret (short) max;
}

static short shortMax(short[] l) {
  int max = Short.MIN_VALUE;
  fOr (short d : l)
    max = Math.max(max, d);
  ret (short) max;
}

Author comment

Began life as a copy of #1032410

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1032411
Snippet name: shortMax
Eternal ID of this version: #1032411/3
Text MD5: 582de824585459172aaece1d4a566cfb
Transpilation MD5: cdc7febb86a24a2331560370eeff2906
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:13:39
Source code size: 286 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 141 / 211
Version history: 2 change(s)
Referenced in: [show references]