Gentee Programming Language > Documentation > Libraries Download documentation

Stack

Variables of the stack type allow you to work with a stack.

  • Operations
  • Methods

    Operations

    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.
     
    OperationSyntaxReturn typeComments
    Variable descriptionstack name
    stack name of тип
    -Stack description. If no item type is specified, uint is used.
    []stack[i]item typeGetting the item i.
    ** stackuintGet the number of items.

    Methods

    stack.clearClearing a stack
    stack.popExtracting an item
    stack.pushAdding an item
    stack.topGetting the top item


     Copyright © 2004-2006 Gentee Inc. All rights reserved.