A simple FIFO queue. Items are added to the Queue with add(1..n items) and removed using next().
Queue
item
item
MIXED
multiple
0..n items to seed the queue.
_init
Initialize the queue
add
item
Add 0..n items to the end of the queue.
item
MIXED
multiple
0..n items.
this queue.
indexOf
needle
Returns the current index in the queue of the specified item
needle
MIXED
the item to search for
the index of the item or -1 if not found
last
Get the last in the queue. LIFO support.
the last item in the queue.
next
Get the next item in the queue. FIFO support
the next item in the queue.
promote
item
Moves the referenced item to the head of the queue
item
MIXED
an item in the queue
remove
item
Removes the referenced item from the queue
item
MIXED
an item in the queue