static void removeLastKey(SortedMap map) { if (nempty(map)) map.remove(lastKey(map)); }