pollFirstEntry

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

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

Return

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

Throws

if this collection implementation does not support this operation