constructor
destructor
clears the whole stack, pops all items
pops an item from the stack (from bottom of stack, since it's a FIFO stack)
pops a number of items from the stack (from bottom since it's a FIFO Stack)
pushes an element to stack
pushes an array of elements to stack
FIFOStack!int stack = new FIFOStack!int; stack.push(0); stack.push([1,2,3,4]); assert(stack.count == 5); assert(stack.pop == 0); assert(stack.count == 4); assert(stack.pop(2) == [1,2]); assert(stack.count == 2); assert(stack.pop(2) == [3,4]); assert(stack.count == 0); stack.push([0,1,2]); assert(stack.count == 3); assert(stack.pop(3) == [0,1,2]);
A FIFO (First In is First Out, first element pushed will be removed first) stack