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).

1  
static int intMin(Iterable<Int> l) {
2  
  int min = Int.MAX_VALUE;
3  
  fOr (int i : l)
4  
    min = Math.min(min, i);
5  
  ret min;
6  
}
7  
8  
static int intMin(int... l) {
9  
  int min = Int.MAX_VALUE;
10  
  if (l != null) for (int i : l)
11  
    min = Math.min(min, i);
12  
  ret min;
13  
}

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