2 summary:: Priority queue data structure
3 categories:: Collections>Ordered
6 PriorityQueue implements a priority queue data structure, which is used to build schedulers. It allows you to put in items at some arbitrary time and pop them in
10 private::prInternalArray
14 Puts the item in the queue at the given time.
17 Returns the time of the earliest item in the queue.
20 Returns the earliest item in the queue.
26 Return a link::Classes/Boolean:: whether the queue is empty.
29 Return a link::Classes/Boolean:: whether the queue is not empty.
32 Remove all instances of value from the queue.
40 p = PriorityQueue.new;
48 while ({ p.notEmpty },{
49 [p.topPriority, p.pop].postln;