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
QUEUE "myqueue 3
SHOW :myqueue
[1 2 3]

SHOW DEQUEUE "myqueue
1

SHOW :myqueue
[2 3]

SourceForge.net Logo