Example:
// Create a new queueval queue = Queue<Int>()for (i in 1 .. 3) queue += ifor (i in 1 .. 3) require(stack.next() == i)
Elizabeth Paige Harper - https://github.com/foxcapades
1.0.0
Type of items that will be appended to this queue.
Constructs a new Queue instance.
Appends the given value to the tail end of the queue.
Gets the target queue element without removing it from the queue.
Tests whether this queue contains at least one more element.
Removes and returns the value from the head of the queue.
Returns the value at the head of the queue without removing it.
Alias for append.
Current capacity of this queue.
The maximum size this queue may grow to.
Current size of this queue.