Eight.Queue

Simple class for handling queuing of objects (FIFO). To use: create a new instance of the class and then call either it's enqueue or dequeue functions.

Example

var queue = new Eight.Queue();

queue.enqueue(1);
queue.enqueue(2);
var one = queue.dequeue();

// At this point one === 1

Last edited Feb 14, 2013 at 2:32 PM by gotdibbs, version 1

Comments

No comments yet.