class PriorityQueue(T)

Defined in:

priority_queue.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(data = nil) #

[View source]

Instance Method Detail

def dup #
Description copied from class Reference

Returns a shallow copy of this object.

This allocates a new object and copies the contents of self into it.


[View source]
def each(&) #

[View source]
def empty? #

[View source]
def inspect #
Description copied from class Object

Returns an unambiguous and information-rich string representation of this object, typically intended for developers.

This method should usually not be overridden. It delegates to #inspect(IO) which can be overridden for custom implementations.

Also see #to_s.


[View source]
def merge(other) #

[View source]
def peek #

[View source]
def pop #

[View source]
def push(priority : Int32, item : T) #

[View source]
def size #

[View source]