1 | static double collectMaxDouble(Collection c, S field) { |
2 | double x = Double.NEGATIVE_INFINITY; |
3 | for (O o : unnull(c)) { |
4 | Double d = cast getOpt(o, field); |
5 | if (d != null) |
6 | x = max(x, d); |
7 | } |
8 | ret x; |
9 | } |
Began life as a copy of #1009136
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1017397 |
Snippet name: | collectMaxDouble - max of double field |
Eternal ID of this version: | #1017397/3 |
Text MD5: | 44cc941c1e0cb6438810f742a382f78d |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-07-19 19:02:46 |
Source code size: | 223 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 310 / 331 |
Version history: | 2 change(s) |
Referenced in: | [show references] |