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
- Indexable::Mutable(T)
Defined in:
strict-yaml/objects.crConstructors
Instance Method Summary
Instance methods inherited from class Object
to_yaml(io : IO) : Nilto_yaml : String to_yaml
Class methods inherited from class Object
from_yaml(source : String)from_yaml(value : StrictYAML::Any) from_yaml