A stack is a deque where items can be Push
ed onto the stack, and the top item can be Pop
ped off the stack.
Stacks are wrapped GAP plain lists.
‣ Stack ( ) | ( function ) |
Returns: stack
Constructor for stacks
‣ IsStack ( arg ) | ( filter ) |
Returns: true
or false
Category of heaps
‣ Push ( stack, object ) | ( operation ) |
Puts object onto stack.
‣ Peek ( stack ) | ( operation ) |
Returns: object or fail
Return the object at the top of stack. If stack is empty, returns fail
‣ Pop ( stack ) | ( operation ) |
Returns: object or fail
Remove the top item from stack and return it. If stack is empty, this function returns fail.
‣ Size ( arg ) | ( attribute ) |
Number of elements on stack
generated by GAPDoc2HTML