Instantiate the state with the starter stacked list.
The list of stackables to start in this stack.
The type of list to create when no stacked list is given.
The class used to wrap stacked items.
Return true if the stack is empty (there are no tasks in the stacked list)
Remove the next stacked task and return it.
Push a stackable task to the top of the stack.
Add a new stackable to the top of the stack
Remove the next stacked task and return it.
Get the size of the current stack.
Take a look at the next stacked task
StaticfromConvert an array to a TaskStack.
An array of values which will be converted to stackables in this queue
The class to use for each stackable
The class to use to manage the stackables
Store a collection of tasks (Stackables) which can only be inserted and removed from the top: pop() takes the task from the top and RUNS it. For a plain last-in-first-out collection of items use Stack.