Next: , Previous: , Up: deques   [Index]


38.3 Deque accessors and mutators

The following syntactic bindings are exported by the library (vicare containers deques). The syntactic bindings whose name is prefixed with $ are unsafe operations: they do not validate their arguments before accessing them.

Function: deque-front deque
Function: $deque-front deque

Return the object at the front of the deque. Raise an assertion violation if deque is empty.

Function: deque-rear deque
Function: $deque-rear deque

Return the object at the rear of the deque. Raise an assertion violation if deque is empty.

Function: deque-push-front! deque obj
Function: $deque-push-front! deque obj

Push obj on the front of the deque.

Function: deque-push-rear! deque obj
Function: $deque-push-rear! deque obj

Push obj on the rear of the deque.

Function: deque-pop-front! deque
Function: $deque-pop-front! deque

Remove the object at the front of the deque and return it. Raise an assertion violation if deque is empty.

Function: deque-pop-rear! deque
Function: $deque-pop-rear! deque

Remove the object at the rear of the deque and return it. Raise an assertion violation if deque is empty.

Function: deque-purge! deque
Function: $deque-purge! deque

Remove all the elements from deque.