Libraryless. Click here for Pure Java version (10038L/55K).
1 | static long collectMinLong(Collection c, S field) { |
2 | long x = Long.MAX_VALUE; |
3 | for (O o : unnull(c)) { |
4 | Long l = cast getOpt(o, field); |
5 | if (l != null) |
6 | x = min(x, (long) l); |
7 | } |
8 | ret x; |
9 | } |
Began life as a copy of #1009136
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1009137 |
Snippet name: | collectMinLong - min of long field |
Eternal ID of this version: | #1009137/4 |
Text MD5: | 03767a7c76577c3ee96a1325a6c6c809 |
Transpilation MD5: | 1dd2bd09ada6070509aba5745c309500 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2023-02-19 00:54:43 |
Source code size: | 212 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 632 / 679 |
Version history: | 3 change(s) |
Referenced in: | [show references] |