1 | static <A, B> B lowestValue(Map<A, B> map) { |
2 | B best = null; |
3 | for (B b : values(map)) |
4 | if (best == null || cmp(b, best) < 0) |
5 | best = b; |
6 | ret best; |
7 | } |
Began life as a copy of #1003134
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: | #1011520 |
Snippet name: | lowestValue - lowest value from map |
Eternal ID of this version: | #1011520/4 |
Text MD5: | 971a88d71584d0021b53c0647d1eec5f |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-10-30 22:52:08 |
Source code size: | 165 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 465 / 471 |
Version history: | 3 change(s) |
Referenced in: | [show references] |