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

13
LINES

< > BotCompany Repo | #1026935 // intMin

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

Libraryless. Click here for Pure Java version (2198L/14K).

static int intMin(Iterable<Int> l) {
  int min = Int.MAX_VALUE;
  fOr (int i : l)
    min = Math.min(min, i);
  ret min;
}

static int intMin(int... l) {
  int min = Int.MAX_VALUE;
  if (l != null) for (int i : l)
    min = Math.min(min, i);
  ret min;
}

Author comment

Began life as a copy of #1006065

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1026935
Snippet name: intMin
Eternal ID of this version: #1026935/3
Text MD5: 3e3c83ad90b0df7132e6da32d1a49cad
Transpilation MD5: 690c259c5eec44c140428e8bd7ff0f66
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-02-03 02:16:19
Source code size: 266 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 156 / 238
Version history: 2 change(s)
Referenced in: [show references]