xxxxxxxxxx
15
/* Queues
* Functions:
* 1. enqueue(i): Insert element i at the tail of the queue.
* 2. dequeue() : Remove the element at the head of the queue.
* 3. size(): returns the current size of the queue
* 4. peek(): returns the element at the head of the queue without changing the queue
* 5. list(): Returns the queue as a list
*/
var queue;
function setup() {
noCanvas();
queue = new Queue();
}