PriorityQueueIterator¶
Import: import system.collections;
Read the usage guide for examples and common tasks. This reference lists the public declarations for this part of the library. See Reading API signatures for parameter and result notation.
PriorityQueueIterator¶
Cursor produced by PriorityQueue.iterator(). Yields elements in ascending order under the active comparator). Iteration is destructive-free: it drains into a snapshot first, so the queue can be mutated while the cursor is alive.
next¶
Returns the next element, or None if exhausted.