class Deque(T)

Overview

A Deque ("double-ended queue") is a collection of objects of type T that behaves much like an Array.

Deque has a subset of Array's API. It performs better than an Array when there are frequent insertions or deletions of items near the beginning or the end.

The most typical use case of a Deque is a queue: use push to add items to the end of the queue and shift to get and remove the item at the beginning of the queue.

This Deque is implemented with a dynamic array used as a circular buffer.

Included Modules

Defined in:

remilib/rsconf/torsconf.cr

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from class Object

toRsconf(io : IO, *, indentSize : Int = 2, alwaysQuoteKeys : Bool = false, explicitRootObject : Bool = false, commaAfterValues : Bool = false, extraNewlineBetweenToplevelKeys : Bool = false) : Nil
toRsconf(*, indentSize : Int = 2, alwaysQuoteKeys : Bool = false, explicitRootObject : Bool = false, commaAfterValues : Bool = false, extraNewlineBetweenToplevelKeys : Bool = false) : String
toRsconf

Class methods inherited from class Object

fromRsconf(toplevel : RemiLib::RSConf::RSValue)
fromRsconf(data : String | IO | Path)
fromRsconf

Constructor Detail

def self.new(val : RemiLib::RSConf::RSValue) #

[View source]
def self.new(val : RemiLib::RSConf::RSValue, &) #

[View source]

Class Method Detail

def self.fromRsconf(toplevel : RemiLib::RSConf::RSValue, &) : Nil #

[View source]
def self.fromRsconf(toplevel : String | IO | Path, &) : Nil #

[View source]

Instance Method Detail

def toRsconf(builder : RemiLib::RSConf::Builder) : Nil #

[View source]