| Stack {rbmi} | R Documentation |
R6 Class for a FIFO stack
Description
This is a simple stack object offering add / pop functionality
Public fields
stackA list containing the current stack
Methods
Public methods
Method add()
Adds content to the end of the stack (must be a list)
Usage
Stack$add(x)
Arguments
xcontent to add to the stack
Method pop()
Retrieve content from the stack
Usage
Stack$pop(i)
Arguments
ithe number of items to retrieve from the stack. If there are less than
iitems left on the stack it will just return everything that is left.
Method clone()
The objects of this class are cloneable with this method.
Usage
Stack$clone(deep = FALSE)
Arguments
deepWhether to make a deep clone.
[Package rbmi version 1.2.6 Index]