Deque - truemedian/Discordia GitHub Wiki
An implementation of a double-ended queue.
getCount
pushLeft
pushRight
popLeft
popRight
peekLeft
peekRight
iter
Returns the total number of values stored.
Returns: number
Adds a value of any type to the left side of the deque.
Name Type obj * Returns: nil
Adds a value of any type to the right side of the deque.
Name Type obj * Returns: nil
Removes and returns a value from the left side of the deque.
Returns: *
Removes and returns a value from the right side of the deque.
Returns: *
Returns the value at the left side of the deque without removing it.
Returns: *
Returns the value at the right side of the deque without removing it.
Returns: *
Iterates over the deque from left to right.
Returns: function