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

7
LINES

< > BotCompany Repo | #1011520 // lowestValue - lowest value from map

JavaX fragment (include)

static <A, B> B lowestValue(Map<A, B> map) {
  B best = null;
  for (B b : values(map))
    if (best == null || cmp(b, best) < 0)
      best = b;
  ret best;
}

Author comment

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: 332 / 365
Version history: 3 change(s)
Referenced in: [show references]