| Gentee Programming Language > Documentation > Libraries | Download documentation |
Variables of the stack type allow you to work with a stack.
Operations defined for the variable of stack type are listed below. The second column contains possible statements where typename is a variable or an expression of the specified type.
Operation Syntax Return type Comments Variable description - Stack description. If no item type is specified, uint is used. [] item type Getting the item i. * uint Get the number of items.
| stack.clear | Clearing a stack |
| stack.pop | Extracting an item |
| stack.push | Adding an item |
| stack.top | Getting the top item |
Copyright © 2004-2006 Gentee Inc. All rights reserved. |