On this page
Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
class · Ruby 3.4
SyntaxSuggest::PriorityQueue
Holds elements in a priority heap on insert
Instead of constantly calling sort!, put the element where it belongs the first time around
Example:
Example
queue = PriorityQueue.new queue << 33 queue << 44 queue << 1 puts queue.peek # => 44
Class methods 1
Instance methods 11
Attributes
Read
No documentation available