class PriorityQueue2(T)

Defined in:

heap.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(comparator = ->(x : Priority, y : Priority) do (x <=> y) == 1 end) #

[View source]

Instance Method Detail

def clear #

[View source]
def delete(priority : Priority) #

[View source]
def empty? #

[View source]
def has_priority?(priority : Priority) #

[View source]
def next #

[View source]
def next! #

[View source]
def pop #

[View source]
def push(object : T, priority : Priority) #

[View source]
def size #

[View source]