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


37.3 Queue accessors and mutators

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

Function: queue-front queue
Function: $queue-front queue

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

Function: queue-rear queue
Function: $queue-rear queue

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

Function: queue-push! queue obj
Function: $queue-push! queue obj

Push obj on the front of the queue.

Function: queue-pop! queue
Function: $queue-pop! queue

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

Function: queue-purge! queue
Function: $queue-purge! queue

Remove all the elements from queue.