Description Usage Value Author(s)
An impure (modify-by-reference), single-ended queue, implemented using lazy pairs.
1 | refqueue()
|
A list with four functions as elements; append
,
pop
, \push, and has
.
append
places v
at the
tail of the queue.
pop()
removes an
element from the head quese and returns it.
push(c)
places v
at the head of the
queue.
has()
returns TRUE
if any
elements are in the queue.
Removing from the tail of the queue is not supported. (A double-ended queue will be added.)
Peter Meilstrup
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.