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

6
LINES

< > BotCompany Repo | #1025547 // longMin

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

Libraryless. Click here for Pure Java version (36L/1K).

1  
static Long longMin(Iterable<Long> l) {
2  
  Long min = null;
3  
  for (long x : l)
4  
    min = min == null ? x : Math.min(min, x);
5  
  ret min;
6  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1025547
Snippet name: longMin
Eternal ID of this version: #1025547/2
Text MD5: da59f29bca274718328f92748a85c3bf
Transpilation MD5: 0f0cd97c98b3b780894ae39370ef8cf2
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2023-09-11 20:14:17
Source code size: 141 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 227 / 328
Version history: 1 change(s)
Referenced in: [show references]