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

3
LINES

< > BotCompany Repo | #1023909 // lastKeyOr0L

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

Libraryless. Click here for Pure Java version (1599L/11K).

static <B> long lastKeyOr0L(SortedMap<Long, B> map) {
  ret empty(map) ? 0 : map.lastKey();
}

Author comment

Began life as a copy of #1023906

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: #1023909
Snippet name: lastKeyOr0L
Eternal ID of this version: #1023909/1
Text MD5: 5554ec02c783534d3e3265b8da6d0fa7
Transpilation MD5: 9fe927d4a7b2eedf2a894190b31fe119
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-07-12 01:54:34
Source code size: 95 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 109 / 166
Referenced in: [show references]