QUEUE

Synopsis
QUEUE queuename value
Description

Adds a thing to the back of a queue whose name is queuename.

This variable must have a list as its value; the initial value should be the empty list. New members are added at the back of the list. Later, you can DEQUEUE value from the queue.

Example
MAKE "myqueue []
QUEUE "myqueue 1
QUEUE "myqueue 2
SHOW :myqueue
[1 2]
SHOW DEQUEUE "myqueue
1
SHOW DEQUEUE "myqueue
2

SourceForge.net Logo