class Lifo::Queue(T)

Defined in:

lifo/queue.cr

Constructors

Instance Method Summary

Instance methods inherited from class Lifo::LifoLike(T)

capacity capacity, empty? : Bool empty?, size : Int32 size, to_a : Array(T) to_a

Constructor methods inherited from class Lifo::LifoLike(T)

new(capacity : Int32 = -1) new

Constructor Detail

def self.new(capacity = -1) #

[View source]

Instance Method Detail

def dequeue : T #

[View source]
def dequeue? : T | Nil #

[View source]
def enqueue(e : T) : Int32 #

[View source]
def enqueue?(e : T) : Int32 | Nil #

[View source]
def peek : T #

[View source]
def peek? : T | Nil #

[View source]