SourceForge.net Logo

Euphoria Standard Library
(ESL)

Home Page | Project Status | Contribute | Guidelines and Information



Euphoria Standard Library module:

queue.e



1. Introduction


A simple yet flexible implementation of the queue data type.



2. Routines

dequeue

Syntax: x = dequeue(i)
Description: Returns object x from the front of queue with id number i.
Status: PROPOSED


enqueue

Syntax: enqueue(i, x)
Description: Sticks object x at the end of queue with id number i.
Status: PROPOSED


new_queue

Syntax: i = new_queue()
Description: Initializes a new queue and returns its integer id number.
Status: PROPOSED


queue_empty

Syntax: i = queue_empty(i)
Description: Returns TRUE (1) if queue with id number i is empty, returns 0 if it isn't. If no queue has been allocated at that id with new_queue then return -1.
Status: PROPOSED