pollFirst

open override fun pollFirst(): E?

Retrieves and removes the first (lowest) element, or returns null if this set is empty (optional operation).

Return

the first element, or null if this set is empty

Throws

if the pollFirst operation is not supported by this collection