[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Stack.prg
Functions to implement a stack data structure
--------------------------------------------------------------------------------
StackNew( ) --> aStack
Create a new array.
StackPush( <aStack>, <exp> ) --> aStack
Add a new value to a stack array.
StackPop( <aStack> ) --> value
Remove the last element of a stack array.
StackIsEmpty( <aStack> ) --> lEmpty
Determine if a stack array has no elements.
StackTop( <aStack> ) --> value
Retrieve top stack element without removing.
Online resources provided by: http://www.ClipX.Net --- NG 2 HTML conversion by Dave Pearson