Libraryless. Click here for Pure Java version (2522L/16K).
static <A, B> void removeLastKey(SortedMap<A, B> map) { if (nempty(map)) map.remove(lastKey(map)); }
Began life as a copy of #1002305
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1030048 |
Snippet name: | removeLastKey |
Eternal ID of this version: | #1030048/3 |
Text MD5: | 688f22e7a54e1da19a3fce13cc199d92 |
Transpilation MD5: | 8fad61fb4fed3a9bf8ec01381abbb76a |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-11-03 08:51:42 |
Source code size: | 109 bytes / 4 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 226 / 315 |
Version history: | 2 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1030049 - lastValue |