pollLastEntry

open fun pollLastEntry(): Map.Entry<K, V>?

Removes and returns the last key-value mapping in this map, or null if the map is empty (optional operation).

Return

the removed last entry of this map, or null if this map is empty

Throws

if this collection implementation does not support this operation