DEQUEUE

Synopsis
DEQUEUE queuename
Description

Outputs the least recent (oldest) thing that was enqueued onto a queue with QUEUE. This value is removed 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]

SHOW DEQUEUE "myqueue
2

SHOW :myqueue
[3]

SourceForge.net Logo